Skip to content

Commit 466e8d5

Browse files
tgummerergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 807e3ca commit 466e8d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t1501-worktree.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ test_expect_success 'Multi-worktree setup' '
350350
mkdir work &&
351351
mkdir -p repo.git/repos/foo &&
352352
cp repo.git/HEAD repo.git/index repo.git/repos/foo &&
353+
test_might_fail cp repo.git/sharedindex.* repo.git/repos/foo &&
353354
sane_unset GIT_DIR GIT_CONFIG GIT_WORK_TREE
354355
'
355356

0 commit comments

Comments
 (0)