summaryrefslogtreecommitdiff
path: root/src/libgit2/repository.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-26 13:02:49 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-20 17:05:30 -0400
commit3eba9181cf74693d5906c799e08aba15b5745355 (patch)
tree6051ebd18bc56deef4627c96fc819d6fa7e8f118 /src/libgit2/repository.c
parent8444b6dce71d53a44f300d7c023cdd075faaa872 (diff)
downloadlibgit2-3eba9181cf74693d5906c799e08aba15b5745355.tar.gz
odb: add git_odb_options
Users will need to be able to specify the object id type for the given object database; add a new `git_odb_options` with that option.
Diffstat (limited to 'src/libgit2/repository.c')
-rw-r--r--src/libgit2/repository.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
index adff425e6..f83135549 100644
--- a/src/libgit2/repository.c
+++ b/src/libgit2/repository.c
@@ -790,7 +790,7 @@ static int _git_repository_open_ext_from_env(
else if (error < 0)
goto error;
else {
- error = git_odb_open(&odb, git_str_cstr(&object_dir_buf));
+ error = git_odb_open(&odb, git_str_cstr(&object_dir_buf), NULL);
if (error < 0)
goto error;
}
@@ -1217,7 +1217,7 @@ int git_repository_odb__weakptr(git_odb **out, git_repository *repo)
if ((error = git_repository__item_path(&odb_path, repo,
GIT_REPOSITORY_ITEM_OBJECTS)) < 0 ||
- (error = git_odb_new(&odb)) < 0)
+ (error = git_odb_new(&odb, NULL)) < 0)
return error;
GIT_REFCOUNT_OWN(odb, repo);