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 @@ -3399,3 +3399,9 @@ web.browser::
3399
3399
Specify a web browser that may be used by some commands.
3400
3400
Currently only linkgit:git-instaweb[1] and linkgit:git-help[1]
3401
3401
may use it.
3402
+
3403
+ sendpack.sideband::
3404
+ Allows to disable the side-band-64k capability for send-pack even
3405
+ when it is advertised by the server. Makes it possible to work
3406
+ around a limitation in the git for windows implementation together
3407
+ 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 ))
@@ -400,14 +410,16 @@ int send_pack(struct send_pack_args *args,
400
410
struct async demux ;
401
411
const char * push_cert_nonce = NULL ;
402
412
413
+ git_config (send_pack_config , NULL );
414
+
403
415
/* Does the other end support the reporting? */
404
416
if (server_supports ("report-status" ))
405
417
status_report = 1 ;
406
418
if (server_supports ("delete-refs" ))
407
419
allow_deleting_refs = 1 ;
408
420
if (server_supports ("ofs-delta" ))
409
421
args -> use_ofs_delta = 1 ;
410
- if (server_supports ("side-band-64k" ))
422
+ if (config_use_sideband && server_supports ("side-band-64k" ))
411
423
use_sideband = 1 ;
412
424
if (server_supports ("quiet" ))
413
425
quiet_supported = 1 ;
You can’t perform that action at this time.
0 commit comments