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
This commit is contained in:
Junio C Hamano
2009-12-26 14:03:17 -08:00
8 changed files with 54 additions and 58 deletions

View File

@ -12,6 +12,7 @@ mk_empty () {
(
cd testrepo &&
git init &&
git config receive.denyCurrentBranch warn &&
mv .git/hooks .git/hooks-disabled
)
}