From f854824bc50c3a05d7773dce81052f9eb8670d5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Barbier?= Date: Sun, 13 Jan 2008 20:02:59 +0100 Subject: [PATCH] http-push: disable http-push without USE_CURL_MULTI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- http-push.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http-push.c b/http-push.c index 55d0c944a..eef767453 100644 --- a/http-push.c +++ b/http-push.c @@ -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); -- 2.26.2