summaryrefslogtreecommitdiff
path: root/t/t0003-attributes.sh
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2011-08-04 04:47:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-04 22:57:17 (GMT)
commitd4d4f8df14c3c19d445a8a79dca56bd33812ee04 (patch)
tree89a40081385a046bd7df4e75238cb09db05df8cb /t/t0003-attributes.sh
parentfa92f3233c65251c3311f0834526ce96a1963554 (diff)
downloadgit-d4d4f8df14c3c19d445a8a79dca56bd33812ee04.zip
git-d4d4f8df14c3c19d445a8a79dca56bd33812ee04.tar.gz
git-d4d4f8df14c3c19d445a8a79dca56bd33812ee04.tar.bz2
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>
Diffstat (limited to 't/t0003-attributes.sh')
-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 4f2fbc0..43957ea 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" &&