Merge pull request #5456 from pks-t/pks/refdb-fs-backend-version

refdb_fs: initialize backend version
This commit is contained in:
Edward Thomson
2020-03-23 10:41:34 +00:00
committed by GitHub

View File

@@ -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) {