File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,8 @@ include::config/safe.txt[]
509
509
510
510
include::config/sendemail.txt[]
511
511
512
+ include::config/sendpack.txt[]
513
+
512
514
include::config/sequencer.txt[]
513
515
514
516
include::config/showbranch.txt[]
Original file line number Diff line number Diff line change
1
+ sendpack.sideband::
2
+ Allows to disable the side-band-64k capability for send-pack even
3
+ when it is advertised by the server. Makes it possible to work
4
+ around a limitation in the git for windows implementation together
5
+ with the dump git protocol. Defaults to true.
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ int send_pack(struct send_pack_args *args,
479
479
int need_pack_data = 0 ;
480
480
int allow_deleting_refs = 0 ;
481
481
int status_report = 0 ;
482
- int use_sideband = 0 ;
482
+ int use_sideband = 1 ;
483
483
int quiet_supported = 0 ;
484
484
int agent_supported = 0 ;
485
485
int advertise_sid = 0 ;
@@ -502,6 +502,7 @@ int send_pack(struct send_pack_args *args,
502
502
return 0 ;
503
503
}
504
504
505
+ git_config_get_bool ("sendpack.sideband" , & use_sideband );
505
506
git_config_get_bool ("push.negotiate" , & push_negotiate );
506
507
if (push_negotiate )
507
508
get_commons_through_negotiation (args -> url , remote_refs , & commons );
@@ -520,8 +521,7 @@ int send_pack(struct send_pack_args *args,
520
521
allow_deleting_refs = 1 ;
521
522
if (server_supports ("ofs-delta" ))
522
523
args -> use_ofs_delta = 1 ;
523
- if (server_supports ("side-band-64k" ))
524
- use_sideband = 1 ;
524
+ use_sideband = use_sideband && server_supports ("side-band-64k" );
525
525
if (server_supports ("quiet" ))
526
526
quiet_supported = 1 ;
527
527
if (server_supports ("agent" ))
You can’t perform that action at this time.
0 commit comments