From: Michael Haggerty Date: Thu, 4 Aug 2011 04:47:44 +0000 (+0200) Subject: git-check-attr: Demonstrate problems with unnormalized paths X-Git-Tag: v1.7.7-rc0~23^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d4d4f8df14c3c19d445a8a79dca56bd33812ee04;p=git.git git-check-attr: Demonstrate problems with unnormalized paths Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 4f2fbc078..43957eae6 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" &&