Skip to content

Commit eef4592

Browse files
authored
Merge pull request #1160 from ehuss/indexer-init
Fix initialization with Indexer::new
2 parents 5bc3baa + 7f42b7a commit eef4592

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/indexer.rs

+3
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,13 @@ impl<'a> Indexer<'a> {
118118
/// can be `None` if no thin pack is expected, in which case missing bases
119119
/// will result in an error.
120120
///
121+
/// `path` is the directory where the packfile should be stored.
122+
///
121123
/// `mode` is the permissions to use for the output files, use `0` for defaults.
122124
///
123125
/// If `verify` is `false`, the indexer will bypass object connectivity checks.
124126
pub fn new(odb: Option<&Odb<'a>>, path: &Path, mode: u32, verify: bool) -> Result<Self, Error> {
127+
crate::init();
125128
let path = path.into_c_string()?;
126129

127130
let odb = odb.map(Binding::raw).unwrap_or_else(ptr::null_mut);

0 commit comments

Comments
 (0)