This repository was archived by the owner on Nov 9, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -2471,3 +2471,9 @@ web.browser::
2471
2471
Specify a web browser that may be used by some commands.
2472
2472
Currently only linkgit:git-instaweb[1] and linkgit:git-help[1]
2473
2473
may use it.
2474
+
2475
+ sendpack.sideband::
2476
+ Allows to disable the side-band-64k capability for send-pack even
2477
+ when it is advertised by the server. Makes it possible to work
2478
+ around a limitation in the git for windows implementation together
2479
+ with the dump git protocol. Defaults to true.
Original file line number Diff line number Diff line change 12
12
#include "version.h"
13
13
#include "sha1-array.h"
14
14
15
+ static int config_use_sideband = 1 ;
16
+
17
+ static int send_pack_config (const char * var , const char * value , void * unused )
18
+ {
19
+ if (!strcmp ("sendpack.sideband" , var ))
20
+ config_use_sideband = git_config_bool (var , value );
21
+
22
+ return 0 ;
23
+ }
24
+
15
25
static int feed_object (const unsigned char * sha1 , int fd , int negative )
16
26
{
17
27
char buf [42 ];
@@ -209,14 +219,16 @@ int send_pack(struct send_pack_args *args,
209
219
int ret ;
210
220
struct async demux ;
211
221
222
+ git_config (send_pack_config , NULL );
223
+
212
224
/* Does the other end support the reporting? */
213
225
if (server_supports ("report-status" ))
214
226
status_report = 1 ;
215
227
if (server_supports ("delete-refs" ))
216
228
allow_deleting_refs = 1 ;
217
229
if (server_supports ("ofs-delta" ))
218
230
args -> use_ofs_delta = 1 ;
219
- if (server_supports ("side-band-64k" ))
231
+ if (config_use_sideband && server_supports ("side-band-64k" ))
220
232
use_sideband = 1 ;
221
233
if (server_supports ("quiet" ))
222
234
quiet_supported = 1 ;
You can’t perform that action at this time.
0 commit comments