Skip to content

Commit 43d583f

Browse files
authored
Init before creating Odb with new (rust-lang#621)
1 parent 95c243f commit 43d583f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/odb.rs

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ impl<'repo> Drop for Odb<'repo> {
4141
impl<'repo> Odb<'repo> {
4242
/// Creates an object database without any backends.
4343
pub fn new<'a>() -> Result<Odb<'a>, Error> {
44+
crate::init();
4445
unsafe {
4546
let mut out = ptr::null_mut();
4647
try_call!(raw::git_odb_new(&mut out));

0 commit comments

Comments
 (0)