path: root/remote.c
diff options
authorJunio C Hamano <>2018-07-24 21:50:44 (GMT)
committerJunio C Hamano <>2018-07-24 21:50:44 (GMT)
commit88df0fa6597fd32b0394c544fb37d6655bd34a13 (patch)
tree994bc28a9b8fc27ca1cf2460a8377c79e737d9f6 /remote.c
parent43013305887c2b81858a0741f39872f8ed5f27d6 (diff)
parentcf1e7c07705eb21c30d0ee414810e7bc8fdf7d82 (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')
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.c b/remote.c
index 539285f..3fd4345 100644
--- a/remote.c
+++ b/remote.c
@@ -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);