summaryrefslogtreecommitdiff
path: root/sha1-file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-24 17:30:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-24 17:30:52 (GMT)
commitee99ba7afbbe1c13b10e27f5f9d162f691682146 (patch)
treecedb1c3eba5f357d1479d4a99db260394e555e69 /sha1-file.c
parent4af130af0cfcb88c82eb223d964d4aa94d1d55d5 (diff)
parente68302011c902961bc55db5eec9b9e32acd114ca (diff)
downloadgit-ee99ba7afbbe1c13b10e27f5f9d162f691682146.zip
git-ee99ba7afbbe1c13b10e27f5f9d162f691682146.tar.gz
git-ee99ba7afbbe1c13b10e27f5f9d162f691682146.tar.bz2
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
Diffstat (limited to 'sha1-file.c')
-rw-r--r--sha1-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-file.c b/sha1-file.c
index d85f4e9..a4367b8 100644
--- a/sha1-file.c
+++ b/sha1-file.c
@@ -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;
}