summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-03 09:08:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-03 09:08:19 (GMT)
commit47292d65dec754bbe37d82369faabeaf8f0cdb7a (patch)
tree5b4120e1a3e34db3fec1d00954101c294b1df486 /git-fetch.sh
parentff989b8d466ee2ec42c69c02e6551add430b8497 (diff)
downloadgit-47292d65dec754bbe37d82369faabeaf8f0cdb7a.zip
git-47292d65dec754bbe37d82369faabeaf8f0cdb7a.tar.gz
git-47292d65dec754bbe37d82369faabeaf8f0cdb7a.tar.bz2
git-fetch: do not look into $GIT_DIR/refs to see if a tag exists.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index f1522bd..e8a7668 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -417,7 +417,7 @@ case "$no_tags$tags" in
sed -ne 's|^\([0-9a-f]*\)[ ]\(refs/tags/.*\)^{}$|\1 \2|p' |
while read sha1 name
do
- test -f "$GIT_DIR/$name" && continue
+ git-show-ref --verify --quiet -- $name && continue
git-check-ref-format "$name" || {
echo >&2 "warning: tag ${name} ignored"
continue