summaryrefslogtreecommitdiff
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-12-26 14:03:17 -0800
committerJunio C Hamano <gitster@pobox.com>2009-12-26 14:03:17 -0800
commit7ad9cec81d86ccf7a693ad7e1218e238aee5ca9d (patch)
treecd2824a4db13560c32edea6e979931fbbcd9ddac /t/t5516-fetch-push.sh
parenta19f101e3f31234db23bd1eb24994db6e4caa443 (diff)
parent375881fa6a43e21ab922b20b2061f9868ef18644 (diff)
downloadgit-7ad9cec81d86ccf7a693ad7e1218e238aee5ca9d.tar.gz
Merge branch 'jc/1.7.0-push-safety'
* jc/1.7.0-push-safety: Refuse deleting the current branch via push Refuse updating the current branch in a non-bare repository via push
Diffstat (limited to 't/t5516-fetch-push.sh')
-rwxr-xr-xt/t5516-fetch-push.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 6889a53cf9..516127b539 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -12,6 +12,7 @@ mk_empty () {
(
cd testrepo &&
git init &&
+ git config receive.denyCurrentBranch warn &&
mv .git/hooks .git/hooks-disabled
)
}