Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
bash completion: Don't offer "a.." as a completion for "a."
[gitweb.git]
/
Documentation
/
howto
/
update-hook-example.txt
diff --git
a/Documentation/howto/update-hook-example.txt
b/Documentation/howto/update-hook-example.txt
index 88765b55754488223cfe492a83afd1aed5380e61..a8d3bae408b6c502062ebc89e04603fa22b97b88 100644
(file)
--- a/
Documentation/howto/update-hook-example.txt
+++ b/
Documentation/howto/update-hook-example.txt
@@
-68,7
+68,7
@@
function info {
# - Branches should only be fast-forwarded.
case "$1" in
refs/tags/*)
-
[ -f "$GIT_DIR/$1" ]
&&
+
git rev-parse --verify -q "$1"
&&
deny >/dev/null "You can't overwrite an existing tag"
;;
refs/heads/*)