fetch: refactor the population of peer ref OIDs
authorBrandon Williams <bmwill@google.com>
Wed, 27 Jun 2018 22:30:19 +0000 (15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 16:33:29 +0000 (09:33 -0700)
commit14b8ced3765b8916683b445f5cc3d6d80acc5f93
tree73763c76a5c0658e1c1b9b08ae27d8f24cf645c4
parent3374292e55564fa6107b31a63a5e5432cd8c2265
fetch: refactor the population of peer ref OIDs

Populate peer ref OIDs in get_ref_map instead of do_fetch. Besides
tightening scopes of variables in the code, this also prepares for
get_ref_map being able to be called multiple times within do_fetch.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c