diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-25 00:50:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-25 00:50:44 +0300 |
commit | 88df0fa6597fd32b0394c544fb37d6655bd34a13 (patch) | |
tree | 994bc28a9b8fc27ca1cf2460a8377c79e737d9f6 /remote.c | |
parent | 43013305887c2b81858a0741f39872f8ed5f27d6 (diff) | |
parent | cf1e7c07705eb21c30d0ee414810e7bc8fdf7d82 (diff) |
Merge branch 'jt/connectivity-check-after-unshallow'
"git fetch" failed to correctly validate the set of objects it
received when making a shallow history deeper, which has been
corrected.
* jt/connectivity-check-after-unshallow:
fetch-pack: write shallow, then check connectivity
fetch-pack: implement ref-in-want
fetch-pack: put shallow info in output parameter
fetch: refactor to make function args narrower
fetch: refactor fetch_refs into two functions
fetch: refactor the population of peer ref OIDs
upload-pack: test negotiation with changing repository
upload-pack: implement ref-in-want
test-pkt-line: add unpack-sideband subcommand
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1736,6 +1736,7 @@ int get_fetch_map(const struct ref *remote_refs, if (refspec->exact_sha1) { ref_map = alloc_ref(name); get_oid_hex(name, &ref_map->old_oid); + ref_map->exact_oid = 1; } else { ref_map = get_remote_ref(remote_refs, name); } |