Code

git-check-attr: Add missing "&&"
[git.git] / t / t0003-attributes.sh
index ebbc7554a7d4dce4c2ed33a79f5d4feb3a520f05..dae76b39b80233183a984a91ffbe397f68430a9e 100755 (executable)
@@ -35,13 +35,19 @@ test_expect_success 'setup' '
                echo "h test=a/b/h" &&
                echo "d/* test=a/b/d/*"
                echo "d/yes notest"
-       ) >a/b/.gitattributes
+       ) >a/b/.gitattributes &&
        (
                echo "global test=global"
        ) >"$HOME"/global-gitattributes
 
 '
 
+test_expect_success 'command line checks' '
+
+       test_must_fail git check-attr "" -- f
+
+'
+
 test_expect_success 'attribute test' '
 
        attr_check f f &&