diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-05 20:52:50 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-05 20:52:50 -0800 |
commit | 92e802c6ccb96d1b5e8561b0a136d43d82253293 (patch) | |
tree | 9b6c265d69d1dc8bcce36c86a44674cfb010a6d7 /git-fetch.sh | |
parent | 17dff84b5e745ba17a5b3ae5591d79f96b165d48 (diff) | |
parent | c1fe2fe4fe685e0587c3949f953aab726de88994 (diff) | |
download | git-1.0.7.tar.gz |
GIT 1.0.7v1.0.7
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 125bcea1b6..b46b3e5589 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -188,11 +188,20 @@ esac reflist=$(get_remote_refs_for_fetch "$@") if test "$tags" then - taglist=$(git-ls-remote --tags "$remote" | - sed -e ' - /\^/d - s/^[^ ]* // - s/.*/.&:&/') + taglist=$(IFS=" " && + git-ls-remote --tags "$remote" | + while read sha1 name + do + case "$name" in + (*^*) continue ;; + esac + if git-check-ref-format "$name" + then + echo ".${name}:${name}" + else + echo >&2 "warning: tag ${name} ignored" + fi + done) if test "$#" -gt 1 then # remote URL plus explicit refspecs; we need to merge them. |