X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5401-update-hooks.sh;h=64f66c94f36538b1c7d20045fc4233aa0b9d9a0d;hb=905bf7742cf5f4a6dea2e75ba2dbd89d5dfaa793;hp=2fff3001530bdf3e6acc283042d432a0698cea03;hpb=7ac749c96d143ba4f76723959892cbaddbe8ed07;p=git.git diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh index 2fff30015..64f66c94f 100755 --- a/t/t5401-update-hooks.sh +++ b/t/t5401-update-hooks.sh @@ -17,7 +17,7 @@ test_expect_success setup ' commit1=$(echo modify | git commit-tree $tree1 -p $commit0) && git update-ref refs/heads/master $commit0 && git update-ref refs/heads/tofail $commit1 && - git-clone ./. victim && + git clone ./. victim && GIT_DIR=victim/.git git update-ref refs/heads/tofail $commit1 && git update-ref refs/heads/master $commit1 && git update-ref refs/heads/tofail $commit0 @@ -61,7 +61,8 @@ EOF chmod u+x victim/.git/hooks/post-update test_expect_success push ' - ! git-send-pack --force ./victim/.git master tofail >send.out 2>send.err + test_must_fail git send-pack --force ./victim/.git \ + master tofail >send.out 2>send.err ' test_expect_success 'updated as expected' '