http-push: disable http-push without USE_CURL_MULTI
authorGrégoire Barbier <gb@gbarbier.org>
Sun, 13 Jan 2008 19:02:59 +0000 (20:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2008 21:50:06 +0000 (13:50 -0800)
Make http-push always fail when not compiled with USE_CURL_MULTI, since
otherwise it corrupts the remote repository (and then fails anyway).

Signed-off-by: Grégoire Barbier <gb@gbarbier.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c

index 55d0c944ae806b5322cba629aa6c5207afbafcfd..eef767453d20451550229f7b1a359d66f8b1316f 100644 (file)
@@ -2212,6 +2212,10 @@ int main(int argc, char **argv)
                break;
        }
 
+#ifndef USE_CURL_MULTI
+       die("git-push is not available for http/https repository when not compiled with USE_CURL_MULTI");
+#endif
+
        if (!remote->url)
                usage(http_push_usage);