aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2008-05-11 18:16:40 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-11 11:31:37 -0700
commit1c51c7d7d97acb447050a820dc39d242dc29c5df (patch)
treec59d7f34ec47251105cb6d0091d038ea1e870c70 /t
parent2455406ab1b0e2b0ad9e5273b9aef6c739d5b8fe (diff)
downloadgit-1c51c7d7d97acb447050a820dc39d242dc29c5df.tar.gz
git-1c51c7d7d97acb447050a820dc39d242dc29c5df.tar.xz
t0050: Test autodetect core.ignorecase
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t0050-filesystem.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
index 3fbad7781..66d3647bd 100755
--- a/t/t0050-filesystem.sh
+++ b/t/t0050-filesystem.sh
@@ -7,6 +7,7 @@ test_description='Various filesystem issues'
auml=`printf '\xc3\xa4'`
aumlcdiar=`printf '\x61\xcc\x88'`
+case_insensitive=
test_expect_success 'see if we expect ' '
test_case=test_expect_success
@@ -17,6 +18,7 @@ test_expect_success 'see if we expect ' '
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 &&
@@ -32,6 +34,20 @@ test_expect_success 'see if we expect ' '
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 &&