author | Jeff King <peff@peff.net> | |
Mon, 17 Dec 2007 12:43:59 +0000 (07:43 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 17 Dec 2007 23:54:28 +0000 (15:54 -0800) | ||
commit | 6851162adf29762cd121555645214468451a3111 | |
tree | 20d5fe7a5c710c7cbe26e09490bce68cccad9f19 | tree | snapshot |
parent | 6281f394674bf2db861967da6c2215cfc3fc78af | commit | diff |
clone: correctly report http_fetch errors
The exit status from curl was accidentally lost by the
'case' statement. We need to explicitly save it so that $?
doesn't get overwritten.
This improves the error message when fetching from an http
repository which has never had update-server-info run.
Previously, it would fail to note the fetch error and
produce multiple errors about the lack of origin branches.
It now correctly suggests running git-update-server-info.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The exit status from curl was accidentally lost by the
'case' statement. We need to explicitly save it so that $?
doesn't get overwritten.
This improves the error message when fetching from an http
repository which has never had update-server-info run.
Previously, it would fail to note the fetch error and
produce multiple errors about the lack of origin branches.
It now correctly suggests running git-update-server-info.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh | diff | blob | history |