File tree Expand file tree Collapse file tree 3 files changed +1
-2
lines changed
Expand file tree Collapse file tree 3 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ 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" }
2120
2221[dev-dependencies ]
2322civet = " 0.11"
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ 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 ( ) ;
7978 git2:: transport:: register ( "http" , move |remote| {
8079 factory ( remote, handle. clone ( ) )
8180 } ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ struct RawSmartSubtransportStream {
107107pub unsafe fn register < F > ( prefix : & str , factory : F ) -> Result < ( ) , Error >
108108 where F : Fn ( & Remote ) -> Result < Transport , Error > + Send + Sync + ' static
109109{
110+ libgit2_sys:: init ( ) ;
110111 let mut data = Box :: new ( TransportData {
111112 factory : Box :: new ( factory) ,
112113 } ) ;
You can’t perform that action at this time.
0 commit comments