From affa40d2f8c5e72af5896cf395ef77d4162908cd Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Mon, 8 Aug 2005 10:53:23 +0100 Subject: [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 Signed-off-by: Junio C Hamano --- git-clone-dumb-http | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-clone-dumb-http') diff --git a/git-clone-dumb-http b/git-clone-dumb-http index 8203c67626..50527086a0 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" && -- cgit v1.3