From: Grégoire Barbier Date: Sun, 13 Jan 2008 19:02:59 GMT Subject: [PATCH] http-push: disable http-push without USE_CURL_MULTI Message-ID: <1200250979-19604-3-git-send-email-gb@gbarbier.org> In-Reply-To: <1200250979-19604-2-git-send-email-gb@gbarbier.org> 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 --- http-push.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/http-push.c b/http-push.c index cbbf432..96c8e75 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); -- 1.5.3.6