From 3deda759198c2a69f280135c0af67e51518cce51 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sat, 17 Nov 2007 22:41:11 +0100 Subject: [PATCH] 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. --- upload-pack.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index 34299308f8..84569a3aad 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -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)