X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-fetch.sh;h=22739440384648357896898f11001e2fa05f217e;hb=98533b90cb8e88484cb381334b19cbf4f7cf92b1;hp=673a1841793ff5cd5b3422471dfaebf049b5b63e;hpb=866ff2f7ce60519e562a6ae37886609c69d5eb70;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index 673a1841..22739440 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -205,9 +205,16 @@ case "$remote" in http://* | https://* | rsync://* ) ;; # we are already done. *) - git-fetch-pack "$remote" $rref | + ( + git-fetch-pack "$remote" $rref || echo failed "$remote" + ) | while read sha1 remote_name do + case "$sha1" in + failed) + echo >&2 "Fetch failure: $remote" + exit 1 ;; + esac found= single_force= for ref in $refs @@ -225,7 +232,7 @@ http://* | https://* | rsync://* ) local_name=$(expr "$found" : '[^:]*:\(.*\)') append_fetch_head "$sha1" "$remote" "$remote_name" "$remote_nick" "$local_name" - done + done || exit ;; esac