Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx> --- packfile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packfile.c b/packfile.c index 977e714d9a..9bb93ce256 100644 --- a/packfile.c +++ b/packfile.c @@ -857,14 +857,13 @@ static void rearrange_packed_git(struct repository *r) set_next_packed_git, sort_pack); } -#define prepare_packed_git_mru(r) prepare_packed_git_mru_##r() -static void prepare_packed_git_mru_the_repository(void) +static void prepare_packed_git_mru(struct repository *r) { struct packed_git *p; - mru_clear(&the_repository->objects.packed_git_mru); - for (p = the_repository->objects.packed_git; p; p = p->next) - mru_append(&the_repository->objects.packed_git_mru, p); + mru_clear(&r->objects.packed_git_mru); + for (p = r->objects.packed_git; p; p = p->next) + mru_append(&r->objects.packed_git_mru, p); } void prepare_packed_git_the_repository(void) -- 2.14.1.581.gf28d330327