X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Ffetch.c;h=c3c58a545349e33d73aa9f65c60f414a06c06ee4;hb=3a2a1dc17077a27ad1a89db27cb1b4b374f3b0ff;hp=ac06f6a5765d2f630116ab588c0e34eb2f0e4db4;hpb=7633ff48ed3ee942cb9c1d233b41ef3a2676cb8a;p=thirdparty%2Fgit.git diff --git a/builtin/fetch.c b/builtin/fetch.c index ac06f6a576..c3c58a5453 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -672,8 +672,10 @@ static int update_local_ref(struct ref *ref, return r; } - current = lookup_commit_reference_gently(&ref->old_oid, 1); - updated = lookup_commit_reference_gently(&ref->new_oid, 1); + current = lookup_commit_reference_gently(the_repository, + &ref->old_oid, 1); + updated = lookup_commit_reference_gently(the_repository, + &ref->new_oid, 1); if (!current || !updated) { const char *msg; const char *what; @@ -808,7 +810,8 @@ static int store_updated_refs(const char *raw_url, const char *remote_name, continue; } - commit = lookup_commit_reference_gently(&rm->old_oid, + commit = lookup_commit_reference_gently(the_repository, + &rm->old_oid, 1); if (!commit) rm->fetch_head_status = FETCH_HEAD_NOT_FOR_MERGE;