aboutsummaryrefslogtreecommitdiff
path: root/t/t0050-filesystem.sh
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2008-05-15 07:19:54 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-17 02:43:26 -0700
commit0047dd2fd1fc1980913901c5fa098357482c2842 (patch)
tree24511ba1d8a1420678bd92c73e302f67ab732063 /t/t0050-filesystem.sh
parent8a19aaab6394df2c6138d5b8b1411eb00bfcf442 (diff)
downloadgit-0047dd2fd1fc1980913901c5fa098357482c2842.tar.gz
git-0047dd2fd1fc1980913901c5fa098357482c2842.tar.xz
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>
Diffstat (limited to 't/t0050-filesystem.sh')
-rwxr-xr-xt/t0050-filesystem.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index 0e33c4bdc..c5360e23d 100755
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
@@ -72,6 +72,8 @@ $test_case 'rename (case change)' '
$test_case 'merge (case change)' '
+ rm -f CamelCase &&
+ rm -f camelcase &&
git reset --hard initial &&
git merge topic