Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Error with circular object directory reference via alternates

On Jul 17, 2014, at 10:40 AM, dly@xxxxxxxxxxxxxx wrote:

> I'm trying to create a relationship between two repos by referencing each
> other's object directories via alternates.  The purpose for this is to
> perform inter-repo change propagation.  Here's a simple test case and the
> result:
> 
> mkdir repo1 && cd repo1 && jgit init && cd ..
> mkdir repo2 && cd repo2 && jgit init && cd ..
> echo “/path/to/repo2/.git/objects” > repo1/.git/objects/info/alternates
> echo “/path/to/repo1/.git/objects” > repo2/.git/objects/info/alternates
> jgit clone file:///path/to/repo1 ./repo1-clone
> 
> Initialized empty Git repository in /path/to/./repo1-clone/.git
> Exception in thread "JGit-Upload-Pack" java.lang.StackOverflowError
> 
> This behavior is not observed when using normal git.
> 
> FWIW, I've tried this with jgit versions v.2.0 (2.0.0.201206130900) and
> v3.5.  I'm wondering if anyone else has tried/considered this and if there
> are possible fixes or workarounds?

Looks like this was already reported as https://bugs.eclipse.org/bugs/show_bug.cgi?id=416457 and a fix attempted https://git.eclipse.org/r/#/c/16087/

We'll give that a try and see how it goes.

Nasser


> 
> _______________________________________________
> jgit-dev mailing list
> jgit-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jgit-dev

-- 
The Qualcomm Innovation Center, Inc. is a member of Code Aurora 
Forum, hosted by The Linux Foundation



Back to the top