summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c764a0c)
raw | patch | inline | side by side (parent: c764a0c)
author | Grégoire Barbier <gb@gbarbier.org> | |
Sun, 13 Jan 2008 19:02:59 +0000 (20:02 +0100) | ||
committer | Junio 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>
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 | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index 55d0c944ae806b5322cba629aa6c5207afbafcfd..eef767453d20451550229f7b1a359d66f8b1316f 100644 (file)
--- a/http-push.c
+++ b/http-push.c
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);