[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>
This commit is contained in:

committed by
Junio C Hamano

parent
3c4e8a636f
commit
affa40d2f8
@ -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://* )
|
||||
|
Reference in New Issue
Block a user