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"
1717url = " 1.0"
1818log = " 0.4"
1919git2 = { path = " .." , version = " 0.8" , default-features = false }
20+ libgit2-sys = { path = " ../libgit2-sys" , version = " 0.7.11" }
2021
2122[dev-dependencies ]
2223civet = " 0.11"
2324conduit = " 0.8"
2425conduit-git-http-backend = " 0.8"
2526tempfile = " 3.0"
26- libgit2-sys = { path = " ../libgit2-sys" , version = " 0.7.11" }
2727
2828[[test ]]
2929name = " all"
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ pub unsafe fn register(handle: Easy) {
7575 let handle = Arc :: new ( Mutex :: new ( handle) ) ;
7676 let handle2 = handle. clone ( ) ;
7777 INIT . call_once ( move || {
78+ libgit2_sys:: init ( ) ;
7879 git2:: transport:: register ( "http" , move |remote| {
7980 factory ( remote, handle. clone ( ) )
8081 } ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const PORT: u16 = 7848;
1515
1616fn main ( ) {
1717 unsafe {
18- libgit2_sys:: init ( ) ;
1918 git2_curl:: register ( curl:: easy:: Easy :: new ( ) ) ;
2019 }
2120
You can’t perform that action at this time.
0 commit comments