X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-fetch.sh;h=c2eebee798d10f7ed5977fc4e56cf02731031971;hb=72303d44e9d8f3fc9bef039b472a2bd259509420;hp=f7167abdf09c815fc8614b47ded0c6bc4518d6f8;hpb=e79992abdb42f8c9e517c60d7e023894a83764a1;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index f7167abdf..c2eebee79 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -225,9 +225,16 @@ reflist=$(get_remote_refs_for_fetch "$@") if test "$tags" then taglist=`IFS=" " && - git-ls-remote $upload_pack --tags "$remote" | + ( + git-ls-remote $upload_pack --tags "$remote" || + echo fail ouch + ) | while read sha1 name do + case "$sha1" in + fail) + exit 1 + esac case "$name" in *^*) continue ;; esac @@ -237,7 +244,7 @@ then else echo >&2 "warning: tag ${name} ignored" fi - done` + done` || exit if test "$#" -gt 1 then # remote URL plus explicit refspecs; we need to merge them.