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 @@ -3496,3 +3496,9 @@ worktree.guessRemote::
3496
3496
such a branch exists, it is checked out and set as "upstream"
3497
3497
for the new branch. If no such match can be found, it falls
3498
3498
back to creating a new branch from the current HEAD.
3499
+
3500
+ sendpack.sideband::
3501
+ Allows to disable the side-band-64k capability for send-pack even
3502
+ when it is advertised by the server. Makes it possible to work
3503
+ around a limitation in the git for windows implementation together
3504
+ 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 ))
@@ -391,14 +401,16 @@ int send_pack(struct send_pack_args *args,
391
401
struct async demux ;
392
402
const char * push_cert_nonce = NULL ;
393
403
404
+ git_config (send_pack_config , NULL );
405
+
394
406
/* Does the other end support the reporting? */
395
407
if (server_supports ("report-status" ))
396
408
status_report = 1 ;
397
409
if (server_supports ("delete-refs" ))
398
410
allow_deleting_refs = 1 ;
399
411
if (server_supports ("ofs-delta" ))
400
412
args -> use_ofs_delta = 1 ;
401
- if (server_supports ("side-band-64k" ))
413
+ if (config_use_sideband && server_supports ("side-band-64k" ))
402
414
use_sideband = 1 ;
403
415
if (server_supports ("quiet" ))
404
416
quiet_supported = 1 ;
You can’t perform that action at this time.
0 commit comments