File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -535,12 +535,6 @@ function set_ssl_cert_locations(cert_loc)
535
535
end
536
536
537
537
function __init__ ()
538
- err = ccall ((:git_libgit2_init , :libgit2 ), Cint, ())
539
- err > 0 || throw (ErrorException (" error initializing LibGit2 module" ))
540
- atexit () do
541
- ccall ((:git_libgit2_shutdown , :libgit2 ), Cint, ())
542
- end
543
-
544
538
# Look for OpenSSL env variable for CA bundle (linux only)
545
539
# windows and macOS use the OS native security backends
546
540
@static if is_linux ()
@@ -554,6 +548,12 @@ function __init__()
554
548
end
555
549
set_ssl_cert_locations (cert_loc)
556
550
end
551
+
552
+ err = ccall ((:git_libgit2_init , :libgit2 ), Cint, ())
553
+ err > 0 || throw (ErrorException (" error initializing LibGit2 module" ))
554
+ atexit () do
555
+ ccall ((:git_libgit2_shutdown , :libgit2 ), Cint, ())
556
+ end
557
557
end
558
558
559
559
You can’t perform that action at this time.
0 commit comments