Refuse updating the current branch in a non-bare repository via push
[gitweb.git] / t / t5516-fetch-push.sh
index 2d2633f3f8784565faf5db84c6efe12d9c405013..6529d97dc007a438f5507cb427a17106113a168f 100755 (executable)
@@ -12,6 +12,7 @@ mk_empty () {
        (
                cd testrepo &&
                git init &&
+               git config receive.denyCurrentBranch warn &&
                mv .git/hooks .git/hooks-disabled
        )
 }