@matheusbsbs / matheus-bagliano / commits / 47292d65de
Fork 0

git-fetch: do not look into $GIT_DIR/refs to see if a tag exists.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Oct 3, 2006 at 02:08 UTC 47292d65dec754bbe37d82369faabeaf8f0cdb7a
1 file changed +1 -1
git-fetch.sh
+1 -1
@@ -417,7 +417,7 @@ case "$no_tags$tags" in
417 sed -ne 's|^\([0-9a-f]*\)[ ]\(refs/tags/.*\)^{}$|\1 \2|p' |
418 while read sha1 name
419 do
420 - test -f "$GIT_DIR/$name" && continue
420 + git-show-ref --verify --quiet -- $name && continue
421 git-check-ref-format "$name" || {
422 echo >&2 "warning: tag ${name} ignored"
423 continue