git-check-attr: Demonstrate problems with unnormalized paths
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 4 Aug 2011 04:47:44 +0000 (06:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Aug 2011 22:57:17 +0000 (15:57 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0003-attributes.sh
index 4f2fbc07810e729abc54872d6d5b2bec11836309..43957eae686203df6bda61a61fab791819b0804f 100755 (executable)
@@ -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" &&