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-ls-remote-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-ls-remote-script') diff --git a/git-ls-remote-script b/git-ls-remote-script index 921d3f8462..31cdac8bfe 100755 --- a/git-ls-remote-script +++ b/git-ls-remote-script @@ -46,7 +46,7 @@ http://* | https://* ) if [ -n "$GIT_SSL_NO_VERIFY" ]; then curl_extra_args="-k" fi - curl -ns $curl_extra_args "$peek_repo/info/refs" || exit 1 + curl -nsf $curl_extra_args "$peek_repo/info/refs" || exit 1 ;; rsync://* ) -- cgit v1.3