summaryrefslogtreecommitdiff
path: root/git-clone-dumb-http
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@gmail.com>2005-08-08 09:53:23 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-09 05:51:44 (GMT)
commitaffa40d2f8c5e72af5896cf395ef77d4162908cd (patch)
tree572d4ab7df2134b99851c86d518ee9947abcc28e /git-clone-dumb-http
parent3c4e8a636f4de3668b24d0020df731cdc78ae6e9 (diff)
downloadgit-affa40d2f8c5e72af5896cf395ef77d4162908cd.zip
git-affa40d2f8c5e72af5896cf395ef77d4162908cd.tar.gz
git-affa40d2f8c5e72af5896cf395ef77d4162908cd.tar.bz2
[PATCH] Make curl fail on server error
Some http servers return an HTML error page and git reads it as normal data. Adding -f option makes curl fail silently. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-clone-dumb-http')
-rwxr-xr-xgit-clone-dumb-http2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-clone-dumb-http b/git-clone-dumb-http
index 8203c67..5052708 100755
--- a/git-clone-dumb-http
+++ b/git-clone-dumb-http
@@ -14,7 +14,7 @@ if [ -n "$GIT_SSL_NO_VERIFY" ]; then
fi
http_fetch () {
# $1 = Remote, $2 = Local
- curl -ns $curl_extra_args "$1" >"$2"
+ curl -nsf $curl_extra_args "$1" >"$2"
}
cd "$D" &&