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:
@ -12,6 +12,7 @@ mk_empty () {
|
||||
(
|
||||
cd testrepo &&
|
||||
git init &&
|
||||
git config receive.denyCurrentBranch warn &&
|
||||
mv .git/hooks .git/hooks-disabled
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user