commit, cherry-pick -s: remove broken support for multiline rfc2822 fields
[gitweb.git] / t / t0003-attributes.sh
index febc45c9cc6f34a606ebac8470e582efad798148..807b8b88e215df5ce39504b1858be8694499727d 100755 (executable)
@@ -196,6 +196,16 @@ test_expect_success 'root subdir attribute test' '
        attr_check subdir/a/i unspecified
 '
 
+test_expect_success 'negative patterns' '
+       echo "!f test=bar" >.gitattributes &&
+       test_must_fail git check-attr test -- f
+'
+
+test_expect_success 'patterns starting with exclamation' '
+       echo "\!f test=foo" >.gitattributes &&
+       attr_check "!f" foo
+'
+
 test_expect_success 'setup bare' '
        git clone --bare . bare.git &&
        cd bare.git