summaryrefslogtreecommitdiff
path: root/src/libgit2/repository.c
diff options
context:
space:
mode:
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 a60fb23fa..5778a86f7 100644
--- a/src/libgit2/repository.c
+++ b/src/libgit2/repository.c
@@ -852,13 +852,13 @@ static int load_grafts(git_repository *repo)
if ((error = git_repository__item_path(&path, repo, GIT_REPOSITORY_ITEM_INFO)) < 0 ||
(error = git_str_joinpath(&path, path.ptr, "grafts")) < 0 ||
- (error = git_grafts_from_file(&repo->grafts, path.ptr)) < 0)
+ (error = git_grafts_from_file(&repo->grafts, path.ptr, repo->oid_type)) < 0)
goto error;
git_str_clear(&path);
if ((error = git_str_joinpath(&path, repo->gitdir, "shallow")) < 0 ||
- (error = git_grafts_from_file(&repo->shallow_grafts, path.ptr)) < 0)
+ (error = git_grafts_from_file(&repo->shallow_grafts, path.ptr, repo->oid_type)) < 0)
goto error;
error: