mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #5456 from pks-t/pks/refdb-fs-backend-version
refdb_fs: initialize backend version
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user