summaryrefslogtreecommitdiff
path: root/Documentation/git-cherry.txt
diff options
context:
space:
mode:
authorLibravatar Jens Lehmann <Jens.Lehmann@web.de>2012-03-04 22:15:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-03-04 21:20:27 -0800
commitd75219b4a8a9c44520ddca234cde992498383b89 (patch)
treebf10b5e4291884143a2cefeac9c4c83434119cc6 /Documentation/git-cherry.txt
parentsubmodules: always use a relative path to gitdir (diff)
downloadtgif-d75219b4a8a9c44520ddca234cde992498383b89.tar.xz
submodules: always use a relative path from gitdir to work tree
Since recently a submodule with name <name> has its git directory in the .git/modules/<name> directory of the superproject while the work tree contains a gitfile pointing there. To make that work the git directory has the core.worktree configuration set in its config file to point back to the work tree. That core.worktree is an absolute path set by the initial clone of the submodule. A relative path is preferable here because it allows the superproject to be moved around without invalidating that setting, so compute and set that relative path after cloning or reactivating the submodule. This also fixes a bug when moving a submodule around inside the superproject, as the current code forgot to update the setting to the new submodule work tree location. Enhance t7400 to ensure that future versions won't re-add absolute paths by accident and that moving a superproject won't break submodules. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cherry.txt')
0 files changed, 0 insertions, 0 deletions