Skip to content

Commit a8f4a7f

Browse files
committed
Init openssl env vars before libgit2
Apparently libgit2 needs them set, so if we initialize them afterwards they're not actually used.
1 parent 0375ba3 commit a8f4a7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,13 @@ mod tree;
528528
mod treebuilder;
529529

530530
fn init() {
531-
raw::init();
532-
533531
static INIT: Once = ONCE_INIT;
534532

535533
INIT.call_once(|| {
536534
openssl_env_init();
537535
});
536+
537+
raw::init();
538538
}
539539

540540
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), feature = "https"))]

0 commit comments

Comments
 (0)