Split run_command into two halves (start/finish)
[gitweb.git] / t / t5401-update-hooks.sh
index 0c0034e34c616fc8a385956a21e282a98b480b37..cf6306ce9f4050e65f7e2cd69f5d5e68b04fb12d 100755 (executable)
@@ -84,23 +84,23 @@ test_expect_success 'pre-receive hook arguments' '
        echo \
         refs/heads/master $commit0 $commit1 \
         refs/heads/tofail $commit1 $commit0 \
-       | diff - victim/.git/pre-receive.args
+       | git diff - victim/.git/pre-receive.args
 '
 
 test_expect_success 'update hook arguments' '
        (echo refs/heads/master $commit0 $commit1;
         echo refs/heads/tofail $commit1 $commit0
-       ) | diff - victim/.git/update.args
+       ) | git diff - victim/.git/update.args
 '
 
 test_expect_success 'post-receive hook arguments' '
        echo refs/heads/master $commit0 $commit1 |
-       diff - victim/.git/post-receive.args
+       git diff - victim/.git/post-receive.args
 '
 
 test_expect_success 'post-update hook arguments' '
        echo refs/heads/master |
-       diff -u - victim/.git/post-update.args
+       git diff - victim/.git/post-update.args
 '
 
 test_expect_success 'all hook stdin is /dev/null' '
@@ -128,7 +128,7 @@ STDERR post-update
 EOF
 test_expect_success 'send-pack stderr contains hook messages' '
        egrep ^STD send.err >actual &&
-       diff - actual <expect
+       git diff - actual <expect
 '
 
 test_done