diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-01-10 14:14:26 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-01-10 14:14:26 -0800 |
| commit | 6c65b5ea439165512d128e18829b67688ddab9cc (patch) | |
| tree | 610724b9cf742ca3a0745f16a9d3fa6f30f92a46 /t | |
| parent | Merge branch 'maint-1.7.6' into maint-1.7.7 (diff) | |
| parent | Prepare for 1.7.6.6 (diff) | |
| download | git-6c65b5ea439165512d128e18829b67688ddab9cc.tar.gz git-6c65b5ea439165512d128e18829b67688ddab9cc.zip | |
Merge the attributes fix in from maint-1.6.6 branch
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0003-attributes.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 6946c4b82f..19265c77cf 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" && |
