projects
/
invirt/scripts/git-hooks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa5062
)
In the submodule update hook, reject pushes to anything but branches.
author
Evan Broder
<broder@mit.edu>
Tue, 13 Oct 2009 16:28:03 +0000
(12:28 -0400)
committer
Evan Broder
<broder@mit.edu>
Tue, 13 Oct 2009 16:28:03 +0000
(12:28 -0400)
svn path=/trunk/scripts/git-hooks/; revision=2503
sub/update
patch
|
blob
|
history
diff --git
a/sub/update
b/sub/update
index
11adb92
..
96347fe
100755
(executable)
--- 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