[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Error with circular object directory reference via alternates
|
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?