Code

Merge branch 'sp/maint-push-sideband' into sp/push-sideband
[git.git] / t / t5401-update-hooks.sh
index c3cf397b030e298b0fafdf8fc8a9bbf88f7d6bf4..0686390d2f107fec3ce7605993c897d822a9d291 100755 (executable)
@@ -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