diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-01-10 14:46:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-10 14:46:22 -0800 |
commit | e04dc492ac1206c7a7e624c09344081263af0e66 (patch) | |
tree | e8202b9e7c732c992eb34558a922b335a91a5d0c /t | |
parent | beecc7ab65b31c5471331e64acaa3f722125ea67 (diff) | |
parent | be4d2920c24ba0be84ceff7e382cce2c5f1ad867 (diff) | |
download | git-e04dc492ac1206c7a7e624c09344081263af0e66.tar.gz git-e04dc492ac1206c7a7e624c09344081263af0e66.tar.xz |
Sync with maint
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 dbb2623d9..51f3045ba 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -159,6 +159,16 @@ test_expect_success 'relative paths' ' (cd b && attr_check ../a/b/g a/b/g) ' +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" && |