summaryrefslogtreecommitdiff
path: root/git-ls-remote-script
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@gmail.com>2005-08-08 10:53:23 +0100
committerJunio C Hamano <junkio@cox.net>2005-08-08 22:51:44 -0700
commitaffa40d2f8c5e72af5896cf395ef77d4162908cd (patch)
tree572d4ab7df2134b99851c86d518ee9947abcc28e /git-ls-remote-script
parent3c4e8a636f4de3668b24d0020df731cdc78ae6e9 (diff)
downloadgit-affa40d2f8c5e72af5896cf395ef77d4162908cd.tar.gz
[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-ls-remote-script')
-rwxr-xr-xgit-ls-remote-script2
1 files changed, 1 insertions, 1 deletions
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://* )