]> git.proxmox.com Git - cargo.git/blobdiff - vendor/git2/src/odb.rs
New upstream version 0.52.0
[cargo.git] / vendor / git2 / src / odb.rs
index de3b42659aa74c31985a46be1c8ac68fa2698dd8..7c53e41d262c308daf9730dc6983808c68205907 100644 (file)
@@ -41,6 +41,7 @@ impl<'repo> Drop for Odb<'repo> {
 impl<'repo> Odb<'repo> {
     /// Creates an object database without any backends.
     pub fn new<'a>() -> Result<Odb<'a>, Error> {
+        crate::init();
         unsafe {
             let mut out = ptr::null_mut();
             try_call!(raw::git_odb_new(&mut out));