Skip to content

Commit 0047dd2

Browse files
sprohaskagitster
authored andcommitted
t0050: Fix merge test on case sensitive file systems
On a case sensitive filesystem, "git reset --hard" might refuse to overwrite a file whose name differs only by case, even if core.ignorecase is set. It is not clear which circumstances cause this behavior. This commit simply works around the problem by removing the case changing file before running "git reset --hard". Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8a19aaa commit 0047dd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t0050-filesystem.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ $test_case 'rename (case change)' '
7272

7373
$test_case 'merge (case change)' '
7474
75+
rm -f CamelCase &&
76+
rm -f camelcase &&
7577
git reset --hard initial &&
7678
git merge topic
7779

0 commit comments

Comments
 (0)