upload-pack: Do not announce sideband support when it is not supported

On Windows we currently don't support sideband communicaton. The protocol
implementation is already disabled, but it was still announced in the
server capabilities.
This commit is contained in:
Johannes Sixt
2007-11-17 22:41:11 +01:00
parent 7828980b8c
commit 3deda75919

View File

@@ -596,8 +596,11 @@ static void receive_needs(void)
static int send_ref(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
{
static const char *capabilities = "multi_ack thin-pack side-band"
" side-band-64k ofs-delta shallow no-progress";
static const char *capabilities = "multi_ack thin-pack"
#ifndef __MINGW32__
" side-band side-band-64k"
#endif
" ofs-delta shallow no-progress";
struct object *o = parse_object(sha1);
if (!o)