test-lib-functions.sh: remove misleading comment on test_seq
[gitweb.git] / t / t5512-ls-remote.sh
index 321c3e5234fdec35f5925e40a18ae74d1cba55c0..3bd9759e0ff01af9969e1f8ae088945d9e2e34e4 100755 (executable)
@@ -103,8 +103,10 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
 '
 
 test_expect_success 'die with non-2 for wrong repository even with --exit-code' '
-       git ls-remote --exit-code ./no-such-repository ;# not &&
-       status=$? &&
+       {
+               git ls-remote --exit-code ./no-such-repository
+               status=$?
+       } &&
        test $status != 2 && test $status != 0
 '