File tree 2 files changed +19
-1
lines changed 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -3384,3 +3384,9 @@ web.browser::
3384
3384
Specify a web browser that may be used by some commands.
3385
3385
Currently only linkgit:git-instaweb[1] and linkgit:git-help[1]
3386
3386
may use it.
3387
+
3388
+ sendpack.sideband::
3389
+ Allows to disable the side-band-64k capability for send-pack even
3390
+ when it is advertised by the server. Makes it possible to work
3391
+ around a limitation in the git for windows implementation together
3392
+ with the dump git protocol. Defaults to true.
Original file line number Diff line number Diff line change @@ -37,6 +37,16 @@ int option_parse_push_signed(const struct option *opt,
37
37
die ("bad %s argument: %s" , opt -> long_name , arg );
38
38
}
39
39
40
+ static int config_use_sideband = 1 ;
41
+
42
+ static int send_pack_config (const char * var , const char * value , void * unused )
43
+ {
44
+ if (!strcmp ("sendpack.sideband" , var ))
45
+ config_use_sideband = git_config_bool (var , value );
46
+
47
+ return 0 ;
48
+ }
49
+
40
50
static void feed_object (const unsigned char * sha1 , FILE * fh , int negative )
41
51
{
42
52
if (negative && !has_sha1_file (sha1 ))
@@ -399,14 +409,16 @@ int send_pack(struct send_pack_args *args,
399
409
struct async demux ;
400
410
const char * push_cert_nonce = NULL ;
401
411
412
+ git_config (send_pack_config , NULL );
413
+
402
414
/* Does the other end support the reporting? */
403
415
if (server_supports ("report-status" ))
404
416
status_report = 1 ;
405
417
if (server_supports ("delete-refs" ))
406
418
allow_deleting_refs = 1 ;
407
419
if (server_supports ("ofs-delta" ))
408
420
args -> use_ofs_delta = 1 ;
409
- if (server_supports ("side-band-64k" ))
421
+ if (config_use_sideband && server_supports ("side-band-64k" ))
410
422
use_sideband = 1 ;
411
423
if (server_supports ("quiet" ))
412
424
quiet_supported = 1 ;
You can’t perform that action at this time.
0 commit comments