Code

Prepare for 1.7.6.6
[git.git] / t / t0003-attributes.sh
index ebbc7554a7d4dce4c2ed33a79f5d4feb3a520f05..61b5a2eba633d52ebf53efb3c0539f8abf4094ea 100755 (executable)
@@ -60,6 +60,16 @@ test_expect_success 'attribute test' '
 
 '
 
+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" &&