[PATCH] http-push: disable http-push without USE_CURL_MULTI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Grégoire Barbier
Date: Sunday, January 13, 2008 - 12:02 pm

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>
---
 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] http-push: making HTTP push more robust and more u ..., Grégoire Barbier, (Sun Jan 13, 12:02 pm)
[PATCH] http-push: fix webdav lock leak., Grégoire Barbier, (Sun Jan 13, 12:02 pm)
[PATCH] http-push: disable http-push without USE_CURL_MULTI, Grégoire Barbier, (Sun Jan 13, 12:02 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 14, 4:21 am)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 14, 1:22 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Grégoire Barbier, (Sat Jan 19, 8:21 am)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Sat Jan 19, 4:18 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Grégoire Barbier, (Mon Jan 21, 3:09 am)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Grégoire Barbier, (Mon Jan 21, 3:27 am)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 21, 5:17 am)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Grégoire Barbier, (Mon Jan 21, 4:12 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 21, 5:58 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 21, 6:38 pm)
Re: [PATCH] http-push: making HTTP push more robust and mo ..., Johannes Schindelin, (Mon Jan 21, 7:14 pm)