Commit 0216db9c authored by Krzesimir Nowak's avatar Krzesimir Nowak Committed by Andrea Veri
Browse files

Disallow pushing branches named HEAD


Signed-off-by: Andrea Veri's avatarAndrea Veri <averi@redhat.com>
parent 42fa113d
......@@ -120,6 +120,14 @@ check_ref_update() {
range=
case $change_type in
create)
if [ "x$branchname" = xHEAD ] ; then
cat <<- EOF >&2
---
You are trying to push the branch 'HEAD'.
---
EOF
exit 1
fi
range="$newrev"
;;
delete)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment