summaryrefslogtreecommitdiff
path: root/mergetools
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2018-06-27 15:30:17 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-28 09:33:29 -0700
commit516e2b76bdcf53e757309481fa0e663217ee8039 (patch)
treeae0e5dd4f8885a87ca8da1ecc740e34023ddd429 /mergetools
parenttest-pkt-line: add unpack-sideband subcommand (diff)
downloadtgif-516e2b76bdcf53e757309481fa0e663217ee8039.tar.xz
upload-pack: implement ref-in-want
Currently, while performing packfile negotiation, clients are only allowed to specify their desired objects using object ids. This causes a vulnerability to failure when an object turns non-existent during negotiation, which may happen if, for example, the desired repository is provided by multiple Git servers in a load-balancing arrangement and there exists replication delay. In order to eliminate this vulnerability, implement the ref-in-want feature for the 'fetch' command in protocol version 2. This feature enables the 'fetch' command to support requests in the form of ref names through a new "want-ref <ref>" parameter. At the conclusion of negotiation, the server will send a list of all of the wanted references (as provided by "want-ref" lines) in addition to the generated packfile. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools')
0 files changed, 0 insertions, 0 deletions