diff options
author | Jeff King <peff@peff.net> | 2021-04-13 09:16:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-13 22:18:46 +0200 |
commit | 45a187cc34b5016842b91ef14b59e40505afff46 (patch) | |
tree | c5f51faea86455cff77a1d4652bbb9a225292907 /walker.c | |
parent | is_promisor_object(): free tree buffer after parsing (diff) | |
download | git-45a187cc34b5016842b91ef14b59e40505afff46.tar.xz git-45a187cc34b5016842b91ef14b59e40505afff46.zip |
lookup_unknown_object(): take a repository argument
All of the other lookup_foo() functions take a repository argument, but
lookup_unknown_object() was never converted, and it uses the_repository
internally. Let's fix that.
We could leave a wrapper that uses the_repository, but there aren't that
many calls, so we'll just convert them all. I looked briefly at each
site to see if we had a repository struct (besides the_repository) we
could pass, but none of them do (so this conversion to pass
the_repository is a pure noop in each case, though it does take us one
step closer to eventually getting rid of the_repository).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | walker.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -298,7 +298,7 @@ int walker_fetch(struct walker *walker, int targets, char **target, error("Could not interpret response from server '%s' as something to pull", target[i]); goto done; } - if (process(walker, lookup_unknown_object(&oids[i]))) + if (process(walker, lookup_unknown_object(the_repository, &oids[i]))) goto done; } |