summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2455406)
raw | patch | inline | side by side (parent: 2455406)
author | Steffen Prohaska <prohaska@zib.de> | |
Sun, 11 May 2008 16:16:40 +0000 (18:16 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 May 2008 18:31:37 +0000 (11:31 -0700) |
Verify if core.ignorecase is automatically set to 'true' during
repository initialization if the file system is case insensitive,
and unset or 'false' otherwise.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
repository initialization if the file system is case insensitive,
and unset or 'false' otherwise.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0050-filesystem.sh | patch | blob | history |
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index 3fbad77811e3782523e83dfdd58fe5308f237771..66d3647bdad7a5bc0e9fb2d15bfa3909138b5501 100755 (executable)
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
auml=`printf '\xc3\xa4'`
aumlcdiar=`printf '\x61\xcc\x88'`
+case_insensitive=
test_expect_success 'see if we expect ' '
test_case=test_expect_success
if test "$(cat junk/CamelCase)" != good
then
test_case=test_expect_failure
+ case_insensitive=t
say "will test on a case insensitive filesystem"
fi &&
rm -fr junk &&
rm -fr junk
'
+if test "$case_insensitive"
+then
+test_expect_success "detection of case insensitive filesystem during repo init" '
+
+ test $(git config --bool core.ignorecase) = true
+'
+else
+test_expect_success "detection of case insensitive filesystem during repo init" '
+
+ ! git config --bool core.ignorecase >/dev/null ||
+ test $(git config --bool core.ignorecase) = false
+'
+fi
+
test_expect_success "setup case tests" '
touch camelcase &&