]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
setup: start tracking ref storage format
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index dea3d5c9a083a0d42f0b676c0716df0d1a930c2b..fdbf5f4cb14d34b536ed9a34f27940a5b279426e 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -2045,10 +2045,10 @@ static struct ref_store *ref_store_init(struct repository *repo,
                                        const char *gitdir,
                                        unsigned int flags)
 {
-       unsigned int format = REF_STORAGE_FORMAT_FILES;
-       const struct ref_storage_be *be = find_ref_storage_backend(format);
+       const struct ref_storage_be *be;
        struct ref_store *refs;
 
+       be = find_ref_storage_backend(repo->ref_storage_format);
        if (!be)
                BUG("reference backend is unknown");