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>

Michael Haggerty committed Aug 4, 2011 at 06:47 UTC d4d4f8df14c3c19d445a8a79dca56bd33812ee04
1 file changed +9
t/t0003-attributes.sh
+9
@@ -93,6 +93,15 @@ test_expect_success 'attribute test' '
93
94 '
95
96 +test_expect_failure 'unnormalized paths' '
97 +
98 + attr_check ./f f &&
99 + attr_check ./a/g a/g &&
100 + attr_check a/./g a/g &&
101 + attr_check a/c/../b/g a/b/g
102 +
103 +'
104 +
105 test_expect_success 'core.attributesfile' '
106 attr_check global unspecified &&
107 git config core.attributesfile "$HOME/global-gitattributes" &&