git-fetch: do not look into $GIT_DIR/refs to see if a tag exists.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -417,7 +417,7 @@ case "$no_tags$tags" in
|
|||||||
sed -ne 's|^\([0-9a-f]*\)[ ]\(refs/tags/.*\)^{}$|\1 \2|p' |
|
sed -ne 's|^\([0-9a-f]*\)[ ]\(refs/tags/.*\)^{}$|\1 \2|p' |
|
||||||
while read sha1 name
|
while read sha1 name
|
||||||
do
|
do
|
||||||
test -f "$GIT_DIR/$name" && continue
|
git-show-ref --verify --quiet -- $name && continue
|
||||||
git-check-ref-format "$name" || {
|
git-check-ref-format "$name" || {
|
||||||
echo >&2 "warning: tag ${name} ignored"
|
echo >&2 "warning: tag ${name} ignored"
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user