summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-03-23 10:41:34 +0000
committerGitHub <noreply@github.com>2020-03-23 10:41:34 +0000
commitdd43571136bf9f5d7e6fba8a5bb89c9003220a55 (patch)
tree61a091b9234a0b6191a1e5fb9c96dad60029fc3e
parent43fb0c2925668ed092bb37f7949b816973b6fbce (diff)
parenta2d3316a2bf7683c3e317ce4a596ea9139992db2 (diff)
downloadlibgit2-dd43571136bf9f5d7e6fba8a5bb89c9003220a55.tar.gz
Merge pull request #5456 from pks-t/pks/refdb-fs-backend-version
refdb_fs: initialize backend version
-rw-r--r--src/refdb_fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index a721f9841..1e53b3af5 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -2129,6 +2129,9 @@ int git_refdb_backend_fs(
backend = git__calloc(1, sizeof(refdb_fs_backend));
GIT_ERROR_CHECK_ALLOC(backend);
+ if (git_refdb_init_backend(&backend->parent, GIT_REFDB_BACKEND_VERSION) < 0)
+ goto fail;
+
backend->repo = repository;
if (repository->gitdir) {