MinGW cannot support sideband communication.

This commit is contained in:
Johannes Sixt
2007-01-08 11:35:42 +01:00
parent 0bb0ca2158
commit ee4a2fe93d
2 changed files with 4 additions and 0 deletions

View File

@@ -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");

View File

@@ -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