diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-26 14:03:17 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-26 14:03:17 -0800 |
commit | 7ad9cec81d86ccf7a693ad7e1218e238aee5ca9d (patch) | |
tree | cd2824a4db13560c32edea6e979931fbbcd9ddac /t/t5516-fetch-push.sh | |
parent | a19f101e3f31234db23bd1eb24994db6e4caa443 (diff) | |
parent | 375881fa6a43e21ab922b20b2061f9868ef18644 (diff) | |
download | git-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-x | t/t5516-fetch-push.sh | 1 |
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 ) } |