X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-hooks.git/blobdiff_plain/49288335f73df1dfc830f99a7f568715fafcb8c8..d2b2008d5312bd247b957ba916cc549452dbf605:/sub/update diff --git a/sub/update b/sub/update index 11adb92..96347fe 100755 --- a/sub/update +++ b/sub/update @@ -21,8 +21,10 @@ fi # --- Disallow pushing tags case "$ref" in - refs/tags/*) - echo "*** Pushing tags to this repository is not allowed" >&2 + refs/heads/*) + ;; + *) + echo "*** Pushing non-branches to this repository is not allowed" >&2 exit 1 ;; esac