summaryrefslogtreecommitdiff
path: root/packfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'packfile.c')
-rw-r--r--packfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/packfile.c b/packfile.c
index 71e95ae11c..60f2e42876 100644
--- a/packfile.c
+++ b/packfile.c
@@ -871,6 +871,7 @@ void packfile_store_add_pack(struct packfile_store *store,
pack_open_fds++;
packfile_list_prepend(&store->packs, pack);
+ packfile_list_append(&store->mru, pack);
strmap_put(&store->packs_by_path, pack->pack_name, pack);
}