diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2011-08-04 06:47:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-04 15:57:17 -0700 |
commit | d4d4f8df14c3c19d445a8a79dca56bd33812ee04 (patch) | |
tree | 89a40081385a046bd7df4e75238cb09db05df8cb | |
parent | fa92f3233c65251c3311f0834526ce96a1963554 (diff) | |
download | git-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-x | t/t0003-attributes.sh | 9 |
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" && |