rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.67k stars 384 forks source link

Always initialize when setting global opts #894

Closed ehuss closed 1 year ago

ehuss commented 1 year ago

This makes sure that init is always called when setting a global option. Although I don't think any of these cases are affected by this, I think it would be good to follow the requirements documented by libgit2 (here). Several of the other opts functions already handle this correctly.