]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0003-attributes.sh
Make !pattern in .gitattributes non-fatal
[thirdparty/git.git] / t / t0003-attributes.sh
index 807b8b88e215df5ce39504b1858be8694499727d..1035a14b37203202a5476f65d07f9bc505bfb52c 100755 (executable)
@@ -198,7 +198,8 @@ test_expect_success 'root subdir attribute test' '
 
 test_expect_success 'negative patterns' '
        echo "!f test=bar" >.gitattributes &&
-       test_must_fail git check-attr test -- f
+       git check-attr test -- '"'"'!f'"'"' 2>errors &&
+       test_i18ngrep "Negative patterns are ignored" errors
 '
 
 test_expect_success 'patterns starting with exclamation' '