summaryrefslogtreecommitdiff
path: root/Documentation/howto/update-hook-example.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-26 01:29:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-26 01:29:14 (GMT)
commit41e98de4280dbb340e64da0a0129edbda9108ccf (patch)
tree3a810f10511cdb4acbcffe69dd2698e7a91601b9 /Documentation/howto/update-hook-example.txt
parent3015fa5846c19e79f99c1d6a49fd2510ed9291b8 (diff)
parente636106c76e0273334940d899de1c928d08b29e8 (diff)
downloadgit-41e98de4280dbb340e64da0a0129edbda9108ccf.zip
git-41e98de4280dbb340e64da0a0129edbda9108ccf.tar.gz
git-41e98de4280dbb340e64da0a0129edbda9108ccf.tar.bz2
Merge branch 'maint'
* maint: GIT 1.5.6.1 fix update-hook-example to work with packed tag references clone: create intermediate directories of destination repo for-each-ref: implement missing tag values git-rebase.sh: Add check if rebase is in progress
Diffstat (limited to 'Documentation/howto/update-hook-example.txt')
-rw-r--r--Documentation/howto/update-hook-example.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/howto/update-hook-example.txt b/Documentation/howto/update-hook-example.txt
index 88765b5..a8d3bae 100644
--- 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/*)