Skip to content

Commit

Permalink
http-push: disable http-push without USE_CURL_MULTI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grégoire Barbier authored and Junio C Hamano committed Jan 18, 2008
1 parent c764a0c commit f854824
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f854824

Please sign in to comment.