t7502-commit: fix spelling
[gitweb.git] / t / t5516-fetch-push.sh
index 11adb0b0edcc0cbc6d193a411ac40dada7ca739d..6a37a4d993df3fa4958a719fdfdb82f0dd2de623 100755 (executable)
@@ -528,7 +528,7 @@ test_expect_success 'push does not update local refs on failure' '
        mk_test heads/master &&
        mk_child child &&
        mkdir testrepo/.git/hooks &&
-       echo exit 1 >testrepo/.git/hooks/pre-receive &&
+       echo "#!/no/frobnication/today" >testrepo/.git/hooks/pre-receive &&
        chmod +x testrepo/.git/hooks/pre-receive &&
        (cd child &&
                git pull .. master
@@ -672,7 +672,7 @@ test_expect_success 'push --porcelain' '
                test "z$r" = "z$the_commit" &&
                test 1 = $(git for-each-ref refs/remotes/origin | wc -l)
        ) &&
-       diff -q .git/foo .git/bar
+       test_cmp .git/foo .git/bar
 '
 
 test_expect_success 'push --porcelain bad url' '
@@ -692,7 +692,7 @@ test_expect_success 'push --porcelain rejected' '
        echo >>.git/foo "!      refs/heads/master:refs/heads/master     [remote rejected] (branch is currently checked out)" &&
 
        test_must_fail git push >.git/bar --porcelain  testrepo refs/heads/master:refs/heads/master &&
-       diff -q .git/foo .git/bar
+       test_cmp .git/foo .git/bar
 '
 
 test_expect_success 'push --porcelain --dry-run rejected' '
@@ -707,7 +707,7 @@ test_expect_success 'push --porcelain --dry-run rejected' '
        echo >>.git/foo "Done" &&
 
        test_must_fail git push >.git/bar --porcelain  --dry-run testrepo refs/heads/master^:refs/heads/master &&
-       diff -q .git/foo .git/bar
+       test_cmp .git/foo .git/bar
 '
 
 test_done