Commit 47ebf589 by Oliver Reiche Committed by Oliver Reiche

Fix missing oid type for "fake" repositories

... otherwise git_tree__parse_raw() will fail to obtain
the correct oid size, which causes the entire parse to fail.
parent 8a62616f
......@@ -1152,6 +1152,8 @@ int git_repository_wrap_odb(git_repository **repo_out, git_odb *odb)
repo = repository_alloc();
GIT_ERROR_CHECK_ALLOC(repo);
repo->oid_type = GIT_OID_DEFAULT;
git_repository_set_odb(repo, odb);
*repo_out = repo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment