Skip to content

Commit 4f5f998

Browse files
committed
Clarify that http-push being temporarily disabled with older cURL
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6fc7470 commit 4f5f998

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Documentation/RelNotes-1.5.4.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@ Removal
1010
* As git-commit and git-status have been rewritten, "git runstatus"
1111
helper script lost all its users and has been removed.
1212

13-
* Curl library older than 7.10 is not supported by "git http-push",
14-
as it does not work without CURLM.
13+
14+
Temporarily Disabled
15+
--------------------
16+
17+
* "git http-push" is known not to work well with cURL library older
18+
than 7.16, and we had reports of repository corruption. It is
19+
disabled on such platforms for now. Unfortunately, 1.5.3.8 shares
20+
the same issue. In other words, this does not mean you will be
21+
fine if you stick to an older git release. For now, please do not
22+
use http-push from older git with cURL older than 7.16 if you
23+
value your data. A proper fix will hopefully materialize in
24+
later versions.
1525

1626

1727
Deprecation notices

Documentation/git-http-push.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ DESCRIPTION
1515
Sends missing objects to remote repository, and updates the
1616
remote branch.
1717

18+
*NOTE*: This command is temporarily disabled if your cURL
19+
library is older than 7.16, as the combination has been reported
20+
not to work and sometimes corrupts repository.
1821

1922
OPTIONS
2023
-------

http.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
#include "strbuf.h"
1010

11+
/*
12+
* We detect based on the cURL version if multi-transfer is
13+
* usable in this implementation and define this symbol accordingly.
14+
* This is not something Makefile should set nor users should pass
15+
* via CFLAGS.
16+
*/
17+
#undef USE_CURL_MULTI
18+
1119
#if LIBCURL_VERSION_NUM >= 0x071000
1220
#define USE_CURL_MULTI
1321
#define DEFAULT_MAX_REQUESTS 5

0 commit comments

Comments
 (0)