diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-12-22 18:11:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 13:51:38 -0800 |
commit | f9f7fd3b238cc56224c30235a0d248d027b7ecfa (patch) | |
tree | 6963c12e8fcfbd835794ca7d4207e47692ae0bbb /refs/debug.c | |
parent | refs: print error message in debug output (diff) | |
download | tgif-f9f7fd3b238cc56224c30235a0d248d027b7ecfa.tar.xz |
refs: centralize initialization of the base ref_store.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/debug.c')
-rw-r--r-- | refs/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/refs/debug.c b/refs/debug.c index 8a6bb157ee..2b0771ca53 100644 --- a/refs/debug.c +++ b/refs/debug.c @@ -26,7 +26,8 @@ struct ref_store *maybe_debug_wrap_ref_store(const char *gitdir, struct ref_stor be_copy->name = store->be->name; trace_printf_key(&trace_refs, "ref_store for %s\n", gitdir); res->refs = store; - base_ref_store_init((struct ref_store *)res, be_copy); + base_ref_store_init((struct ref_store *)res, store->repo, gitdir, + be_copy); return (struct ref_store *)res; } |