File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ curl = "0.4"
17
17
url = " 1.0"
18
18
log = " 0.4"
19
19
git2 = { path = " .." , version = " 0.8" , default-features = false }
20
+ libgit2-sys = { path = " ../libgit2-sys" , version = " 0.7.11" }
20
21
21
22
[dev-dependencies ]
22
23
civet = " 0.11"
23
24
conduit = " 0.8"
24
25
conduit-git-http-backend = " 0.8"
25
26
tempfile = " 3.0"
26
- libgit2-sys = { path = " ../libgit2-sys" , version = " 0.7.11" }
27
27
28
28
[[test ]]
29
29
name = " all"
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ pub unsafe fn register(handle: Easy) {
75
75
let handle = Arc :: new ( Mutex :: new ( handle) ) ;
76
76
let handle2 = handle. clone ( ) ;
77
77
INIT . call_once ( move || {
78
+ libgit2_sys:: init ( ) ;
78
79
git2:: transport:: register ( "http" , move |remote| {
79
80
factory ( remote, handle. clone ( ) )
80
81
} ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const PORT: u16 = 7848;
15
15
16
16
fn main ( ) {
17
17
unsafe {
18
- libgit2_sys:: init ( ) ;
19
18
git2_curl:: register ( curl:: easy:: Easy :: new ( ) ) ;
20
19
}
21
20
You can’t perform that action at this time.
0 commit comments