@matheusbsbs / matheus-bagliano / commits / f854824bc5
Fork 0

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>

Grégoire Barbier committed Jan 13, 2008 at 20:02 UTC f854824bc50c3a05d7773dce81052f9eb8670d5f
1 file changed +4
http-push.c
+4
@@ -2212,6 +2212,10 @@ int main(int argc, char **argv)
2212 break;
2213 }
2214
2215 +#ifndef USE_CURL_MULTI
2216 + die("git-push is not available for http/https repository when not compiled with USE_CURL_MULTI");
2217 +#endif
2218 +
2219 if (!remote->url)
2220 usage(http_push_usage);
2221