diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-13 22:30:13 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-13 22:30:13 -0700 |
commit | 4803c2802c11525b11d106247661ea13b2a9ce98 (patch) | |
tree | 413a2727a9e0cf9e8d7b6b8ba642c8527be44961 /git-fetch.sh | |
parent | 3db6b224cf36748b969acdd96b9fb2de641cd641 (diff) | |
parent | 2ba6c47be1762726ad0c1d5779064c489150d789 (diff) | |
download | git-4803c2802c11525b11d106247661ea13b2a9ce98.tar.gz git-4803c2802c11525b11d106247661ea13b2a9ce98.tar.xz |
Merge branch 'master' of .
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 673a18417..227394403 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 |