From: Junio C Hamano Date: Tue, 3 Oct 2006 09:08:19 +0000 (-0700) Subject: git-fetch: do not look into $GIT_DIR/refs to see if a tag exists. X-Git-Tag: v1.4.4-rc1~44^2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47292d65dec754bbe37d82369faabeaf8f0cdb7a;p=git.git git-fetch: do not look into $GIT_DIR/refs to see if a tag exists. Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index f1522bd49..e8a766818 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