X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0003-attributes.sh;fp=t%2Ft0003-attributes.sh;h=19265c77cf0b1df828eea188d5f880cbb7497c63;hb=6c65b5ea439165512d128e18829b67688ddab9cc;hp=6946c4b82f9291f6618d49de2e3892a2c203d337;hpb=8769e93327f5efc26d179d794a67a5b993cd3693;p=git.git diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 6946c4b82..19265c77c 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -172,6 +172,16 @@ test_expect_success 'relative paths' ' ' +test_expect_success 'prefixes are not confused with leading directories' ' + attr_check a_plus/g unspecified && + cat >expect <<-\EOF && + a/g: test: a/g + a_plus/g: test: unspecified + EOF + git check-attr test a/g a_plus/g >actual && + test_cmp expect actual +' + test_expect_success 'core.attributesfile' ' attr_check global unspecified && git config core.attributesfile "$HOME/global-gitattributes" &&