зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
c764a0c2b6
Коммит
f854824bc5
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче