refs: pass gitdir to packed_ref_store_create
commit99f0d97b736e80fb2f92f8a1a5fbc65b68c2a1b9
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 22 Dec 2021 18:11:52 +0000 (22 18:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Dec 2021 21:51:37 +0000 (22 13:51 -0800)
tree5ec03c9d6afdc540ccc68de2bf56bc54cbb3098c
parent597af311a2899bfd6640b9b107622c5795d5f998
refs: pass gitdir to packed_ref_store_create

This is consistent with the calling convention for ref backend creation, and
avoids storing ".git/packed-refs" (the name of a regular file) in a variable called
ref_store::gitdir.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c
refs/packed-backend.c
refs/packed-backend.h