]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5571-pre-push-hook.sh
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / t / t5571-pre-push-hook.sh
index b043a279f15f6ff3d85ba29dddd6f22eeaff6b1f..660f876eec2122f3b00e2dd087a03e2ffcd685e2 100755 (executable)
@@ -114,11 +114,11 @@ test_expect_success 'push to URL' '
 
 test_expect_success 'set up many-ref tests' '
        {
-               nr=1000
+               nr=1000 &&
                while test $nr -lt 2000
                do
                        nr=$(( $nr + 1 )) &&
-                       echo "create refs/heads/b/$nr $COMMIT3"
+                       echo "create refs/heads/b/$nr $COMMIT3" || return 1
                done
        } | git update-ref --stdin
 '