diff options
author | 2018-06-27 15:30:17 -0700 | |
---|---|---|
committer | 2018-06-28 09:33:29 -0700 | |
commit | 516e2b76bdcf53e757309481fa0e663217ee8039 (patch) | |
tree | ae0e5dd4f8885a87ca8da1ecc740e34023ddd429 /t/t4013/diff.diff_--no-index_--name-status_dir2_dir | |
parent | test-pkt-line: add unpack-sideband subcommand (diff) | |
download | tgif-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 't/t4013/diff.diff_--no-index_--name-status_dir2_dir')
0 files changed, 0 insertions, 0 deletions