mirror of
https://github.com/git/git
synced 2024-10-30 14:03:28 +00:00
Incorporate fetched packs in future object traversal
Immediately after fetching a pack, we should call reprepare_packed_git() to make sure the objects in the pack are reachable. Otherwise, we will fail to look up objects that are present only in the fetched pack. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e449f10580
commit
48ec3e5c07
1 changed files with 1 additions and 0 deletions
|
@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
|
|||
}
|
||||
}
|
||||
|
||||
reprepare_packed_git();
|
||||
return ref_cpy;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue