mirror of
https://github.com/git/git.git
synced 2024-05-09 12:36:08 +02:00
Merge be0df897fd
into e326e52010
This commit is contained in:
commit
9883f02bee
|
@ -37,7 +37,7 @@ if [ -z "$GIT_DIR" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
|
||||
if [ -z "$refname" ] || [ -z "$oldrev" ] || [ -z "$newrev" ]; then
|
||||
echo "usage: $0 <ref> <oldrev> <newrev>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
@ -95,7 +95,7 @@ case "$refname","$newrev_type" in
|
|||
;;
|
||||
refs/heads/*,commit)
|
||||
# branch
|
||||
if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
|
||||
if [ "$oldrev" = "$zero" ] && [ "$denycreatebranch" = "true" ]; then
|
||||
echo "*** Creating a branch is not allowed in this repository" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue