From d2b2008d5312bd247b957ba916cc549452dbf605 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 13 Oct 2009 12:28:03 -0400 Subject: [PATCH] In the submodule update hook, reject pushes to anything but branches. svn path=/trunk/scripts/git-hooks/; revision=2503 --- sub/update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.9.5