Merge branch 'jt/lazy-object-fetch-fix'

The code to backfill objects in lazily cloned repository did not
work correctly, which has been corrected.

* jt/lazy-object-fetch-fix:
  fetch-object: set exact_oid when fetching
  fetch-object: unify fetch_object[s] functions
This commit is contained in:
Junio C Hamano
2018-09-24 10:30:52 -07:00
5 changed files with 22 additions and 19 deletions

View File

@ -1317,7 +1317,7 @@ int oid_object_info_extended(struct repository *r, const struct object_id *oid,
* TODO Pass a repository struct through fetch_object,
* such that arbitrary repositories work.
*/
fetch_object(repository_format_partial_clone, real->hash);
fetch_objects(repository_format_partial_clone, real, 1);
already_retried = 1;
continue;
}