summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-08-04 06:47:44 +0200
committerJunio C Hamano <gitster@pobox.com>2011-08-04 15:57:17 -0700
commitd4d4f8df14c3c19d445a8a79dca56bd33812ee04 (patch)
tree89a40081385a046bd7df4e75238cb09db05df8cb
parentfa92f3233c65251c3311f0834526ce96a1963554 (diff)
downloadgit-d4d4f8df14c3c19d445a8a79dca56bd33812ee04.tar.gz
git-check-attr: Demonstrate problems with unnormalized paths
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0003-attributes.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index 4f2fbc0781..43957eae68 100755
--- a/t/t0003-attributes.sh
+++ b/t/t0003-attributes.sh
@@ -93,6 +93,15 @@ test_expect_success 'attribute test' '
'
+test_expect_failure 'unnormalized paths' '
+
+ attr_check ./f f &&
+ attr_check ./a/g a/g &&
+ attr_check a/./g a/g &&
+ attr_check a/c/../b/g a/b/g
+
+'
+
test_expect_success 'core.attributesfile' '
attr_check global unspecified &&
git config core.attributesfile "$HOME/global-gitattributes" &&