diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-12-17 20:49:42 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-12-17 20:49:42 -0800 |
| commit | bd8ff616c998da8b08bd59b47644408048b3016d (patch) | |
| tree | 8eb558ca8a38099a96ed75ed922a4377010666da /git-clone.sh | |
| parent | rebase -p -i: handle "no changes" gracefully (diff) | |
| parent | git-send-email: avoid duplicate message-ids (diff) | |
| download | git-bd8ff616c998da8b08bd59b47644408048b3016d.tar.gz git-bd8ff616c998da8b08bd59b47644408048b3016d.zip | |
Merge branch 'maint'
* maint:
git-send-email: avoid duplicate message-ids
clone: correctly report http_fetch errors
Diffstat (limited to 'git-clone.sh')
| -rwxr-xr-x | git-clone.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/git-clone.sh b/git-clone.sh index 68085a3225..9a160eea52 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -56,11 +56,12 @@ fi http_fetch () { # $1 = Remote, $2 = Local - curl -nsfL $curl_extra_args "$1" >"$2" || - case $? in - 126|127) exit ;; - *) return $? ;; - esac + curl -nsfL $curl_extra_args "$1" >"$2" + curl_exit_status=$? + case $curl_exit_status in + 126|127) exit ;; + *) return $curl_exit_status ;; + esac } clone_dumb_http () { |
