Skip to content

Commit d475dc9

Browse files
committed
attempt to fix seg fault in the all test. Thanks again @ehuss
1 parent 764877b commit d475dc9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

git2-curl/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ civet = "0.11"
2323
conduit = "0.8"
2424
conduit-git-http-backend = "0.8"
2525
tempfile = "3.0"
26+
libgit2-sys = { path = "../libgit2-sys"}
2627

2728
[[test]]
2829
name = "all"

git2-curl/tests/all.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const PORT: u16 = 7848;
1515

1616
fn main() {
1717
unsafe {
18+
libgit2_sys::init();
1819
git2_curl::register(curl::easy::Easy::new());
1920
}
2021

0 commit comments

Comments
 (0)