summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-01-25 23:04:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-26 19:01:04 (GMT)
commitec9629b3b9abc9fc9cb2a9e058bf8dccbc760433 (patch)
treec777462a63da0ec73e6ca5feef41d6805fa101da /t/t1450-fsck.sh
parent5f29433f1ca1efc35d546a056200d923e86e3fca (diff)
downloadgit-ec9629b3b9abc9fc9cb2a9e058bf8dccbc760433.zip
git-ec9629b3b9abc9fc9cb2a9e058bf8dccbc760433.tar.gz
git-ec9629b3b9abc9fc9cb2a9e058bf8dccbc760433.tar.bz2
submodule absorbing: fix worktree/gitdir pointers recursively for non-moves
Consider having a submodule 'sub' and a nested submodule at 'sub/nested'. When nested is already absorbed into sub, but sub is not absorbed into its superproject, then we need to fixup the gitfile and core.worktree setting for 'nested' when absorbing 'sub', but we do not need to move its git dir around. Previously 'nested's gitfile contained "gitdir: ../.git/modules/nested"; it has to be corrected to "gitdir: ../../.git/modules/sub1/modules/nested". An alternative I considered to do this work lazily, i.e. when resolving "../.git/modules/nested", we would notice the ".git" being a gitfile linking to another path. That seemed to be robuster by design, but harder to get the implementation right. Maybe we have to do that anyway once we try to have submodules and worktrees working nicely together, but for now just produce 'correct' (i.e. direct) pointers. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1450-fsck.sh')
0 files changed, 0 insertions, 0 deletions