[PATCH] Make curl fail on server error
[gitweb.git] / git-clone-dumb-http
index 8203c67626f45b2c9363b5e5b7bc47df5647490f..50527086a09944c94a0d00b2b8eaf9cb8afaf5fb 100755 (executable)
@@ -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" &&