summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-04-30 04:50:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-30 04:50:24 (GMT)
commit13158b9910f8de4a88b39420be80f03c681b3ec9 (patch)
tree606be7ce14f379439bdb5341eced6b1a85def26c /http-push.c
parent311531c9de557d25ac087c1637818bd2aad6eb3a (diff)
parentc1fa951d7ea9e943f001ac7c7502995273db5776 (diff)
downloadgit-13158b9910f8de4a88b39420be80f03c681b3ec9.zip
git-13158b9910f8de4a88b39420be80f03c681b3ec9.tar.gz
git-13158b9910f8de4a88b39420be80f03c681b3ec9.tar.bz2
Merge branch 'jk/promisor-optim'
Handling of "promisor packs" that allows certain objects to be missing and lazily retrievable has been optimized (a bit). * jk/promisor-optim: revision: avoid parsing with --exclude-promisor-objects lookup_unknown_object(): take a repository argument is_promisor_object(): free tree buffer after parsing
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index b60d5fc..8131232 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1436,7 +1436,7 @@ static void one_remote_ref(const char *refname)
* may be required for updating server info later.
*/
if (repo->can_update_info_refs && !has_object_file(&ref->old_oid)) {
- obj = lookup_unknown_object(&ref->old_oid);
+ obj = lookup_unknown_object(the_repository, &ref->old_oid);
fprintf(stderr, " fetch %s for %s\n",
oid_to_hex(&ref->old_oid), refname);
add_fetch_request(obj);