summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-18 21:39:17 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-19 18:44:23 -0800
commit6c96c0f1940b0247530d21b10042d16bf1e7b769 (patch)
tree55d7edd39adc5b480cc1ccfad7f6fc60769a05d1 /git-fetch.sh
parent198a4f4ff0694cb5b906278fc1c2b6e7db4d2737 (diff)
downloadgit-6c96c0f1940b0247530d21b10042d16bf1e7b769.tar.gz
git-fetch: follow lightweit tags as well.
This side-ports commit fd19f620 from Cogito, in which I fixed exactly the same bug. Somehow nobody noticed this for a long time in git. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 7442dd2ca5..eb32476bbd 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -432,10 +432,11 @@ case "$no_tags$tags" in
# using local tracking branch.
taglist=$(IFS=" " &&
git-ls-remote $upload_pack --tags "$remote" |
- sed -ne 's|^\([0-9a-f]*\)[ ]\(refs/tags/.*\)^{}$|\1 \2|p' |
+ sed -n -e 's|^\('"$_x40"'\) \(refs/tags/.*\)^{}$|\1 \2|p' \
+ -e 's|^\('"$_x40"'\) \(refs/tags/.*\)$|\1 \2|p' |
while read sha1 name
do
- git-show-ref --verify --quiet -- $name && continue
+ git-show-ref --verify --quiet -- "$name" && continue
git-check-ref-format "$name" || {
echo >&2 "warning: tag ${name} ignored"
continue