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 @@ -477,7 +477,7 @@ int send_pack(struct send_pack_args *args,
477
477
int need_pack_data = 0 ;
478
478
int allow_deleting_refs = 0 ;
479
479
int status_report = 0 ;
480
- int use_sideband = 0 ;
480
+ int use_sideband = 1 ;
481
481
int quiet_supported = 0 ;
482
482
int agent_supported = 0 ;
483
483
int advertise_sid = 0 ;
@@ -500,6 +500,7 @@ int send_pack(struct send_pack_args *args,
500
500
return 0 ;
501
501
}
502
502
503
+ git_config_get_bool ("sendpack.sideband" , & use_sideband );
503
504
git_config_get_bool ("push.negotiate" , & push_negotiate );
504
505
if (push_negotiate )
505
506
get_commons_through_negotiation (args -> url , remote_refs , & commons );
@@ -518,8 +519,7 @@ int send_pack(struct send_pack_args *args,
518
519
allow_deleting_refs = 1 ;
519
520
if (server_supports ("ofs-delta" ))
520
521
args -> use_ofs_delta = 1 ;
521
- if (server_supports ("side-band-64k" ))
522
- use_sideband = 1 ;
522
+ use_sideband = use_sideband && server_supports ("side-band-64k" );
523
523
if (server_supports ("quiet" ))
524
524
quiet_supported = 1 ;
525
525
if (server_supports ("agent" ))
You can’t perform that action at this time.
0 commit comments