X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5401-update-hooks.sh;h=325714e5299a5b59157c3741e7fa0d98d70b9990;hb=df91d0e4d30ddc9bf2c55e3a63be9cb5318a409a;hp=64f66c94f36538b1c7d20045fc4233aa0b9d9a0d;hpb=529f8c6ea6c13d85178d4ed10ed60ed8fd6f6c19;p=git.git diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh index 64f66c94f..325714e52 100755 --- a/t/t5401-update-hooks.sh +++ b/t/t5401-update-hooks.sh @@ -18,6 +18,7 @@ test_expect_success setup ' git update-ref refs/heads/master $commit0 && git update-ref refs/heads/tofail $commit1 && git clone ./. victim && + GIT_DIR=victim/.git git config receive.denyCurrentBranch warn && 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