t1501: fix test with split index
t1501-worktree.sh does not copy the shared index in the "relative $GIT_WORK_TREE and git subprocesses" test, which makes the test fail when GIT_TEST_SPLIT_INDEX is set. Copy the shared index as well in order to fix this. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Gummerer committed
Mar 24, 2015 at 20:21 UTC
466e8d5d660ba732c1065ab3329c91e4b4aa7739
1 file changed
+1
t/t1501-worktree.sh
+1
@@ -350,6 +350,7 @@ test_expect_success 'Multi-worktree setup' '
350
mkdir work &&
351
mkdir -p repo.git/repos/foo &&
352
cp repo.git/HEAD repo.git/index repo.git/repos/foo &&
353
+ test_might_fail cp repo.git/sharedindex.* repo.git/repos/foo &&
354
sane_unset GIT_DIR GIT_CONFIG GIT_WORK_TREE
355
'
356