summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorGrégoire Barbier <gb@gbarbier.org>2008-01-13 20:02:59 +0100
committerJunio C Hamano <gitster@pobox.com>2008-01-18 13:50:06 -0800
commitf854824bc50c3a05d7773dce81052f9eb8670d5f (patch)
tree0aab4cc0907aa6d7c13e467d14763db46bb4204e /http-push.c
parentc764a0c2b6d8c94d90c95fa8170970c85a40665c (diff)
downloadgit-f854824bc50c3a05d7773dce81052f9eb8670d5f.tar.gz
http-push: disable http-push without USE_CURL_MULTI
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>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/http-push.c b/http-push.c
index 55d0c944ae..eef767453d 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);