mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
MinGW cannot support sideband communication.
This commit is contained in:
@@ -564,6 +564,7 @@ static int fetch_pack(int fd[2], int nr_match, char **match)
|
||||
fprintf(stderr, "Server supports multi_ack\n");
|
||||
multi_ack = 1;
|
||||
}
|
||||
#ifndef __MINGW32__
|
||||
if (server_supports("side-band-64k")) {
|
||||
if (verbose)
|
||||
fprintf(stderr, "Server supports side-band-64k\n");
|
||||
@@ -574,6 +575,7 @@ static int fetch_pack(int fd[2], int nr_match, char **match)
|
||||
fprintf(stderr, "Server supports side-band\n");
|
||||
use_sideband = 1;
|
||||
}
|
||||
#endif
|
||||
if (!ref) {
|
||||
packet_flush(fd[1]);
|
||||
die("no matching remote head");
|
||||
|
||||
@@ -537,10 +537,12 @@ static void receive_needs(void)
|
||||
use_thin_pack = 1;
|
||||
if (strstr(line+45, "ofs-delta"))
|
||||
use_ofs_delta = 1;
|
||||
#ifndef __MINGW32__
|
||||
if (strstr(line+45, "side-band-64k"))
|
||||
use_sideband = LARGE_PACKET_MAX;
|
||||
else if (strstr(line+45, "side-band"))
|
||||
use_sideband = DEFAULT_PACKET_MAX;
|
||||
#endif
|
||||
|
||||
/* We have sent all our refs already, and the other end
|
||||
* should have chosen out of them; otherwise they are
|
||||
|
||||
Reference in New Issue
Block a user