]> source.dussan.org Git - jgit.git/commit
Support the new repository layout for submodules 82/37982/4
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 10 Dec 2014 16:54:28 +0000 (17:54 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 14 Dec 2014 23:22:51 +0000 (00:22 +0100)
commit53ff0529988ae8ec6f75a1f3d1b7b75de7dc304f
tree996b5851777632e5f3170589364eb078262b0a25
parent6e05d98cce318056f95700e562cec6b68fcf7475
Support the new repository layout for submodules

When updating a submodule (e.g. during recursive clone) the repository
for the submodule should be located at <gitdir>/modules/<submodule-path>
whereas the working tree of the submodule should be located at
<working-tree>/<submodule-path> (<gitdir> and <working-tree> are
associated to the containing repository). Since CloneCommand has learned
about specifying a separate gitdir this is easy to implement in
SubmoduleUpdateCommand.

Change-Id: I9b56a3dfa50f97f6975c2bb7c97b36296f331b64
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java