Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2c5608

Browse files
committed
1 parent 6c1471e commit e2c5608

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

base/libgit2/libgit2.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,12 @@ function set_ssl_cert_locations(cert_loc)
529529
cert_file = isfile(cert_loc) ? cert_loc : Cstring(C_NULL)
530530
cert_dir = isdir(cert_loc) ? cert_loc : Cstring(C_NULL)
531531
cert_file == C_NULL && cert_dir == C_NULL && return
532-
ccall((:git_libgit2_opts, :libgit2), Cint,
533-
(Cint, Cstring, Cstring),
534-
Cint(Consts.SET_SSL_CERT_LOCATIONS), cert_file, cert_dir)
532+
# TODO FIX https://github.com/libgit2/libgit2/pull/3935#issuecomment-253910017
533+
#ccall((:git_libgit2_opts, :libgit2), Cint,
534+
# (Cint, Cstring, Cstring),
535+
# Cint(Consts.SET_SSL_CERT_LOCATIONS), cert_file, cert_dir)
536+
ENV["SSL_CERT_FILE"] = cert_file
537+
ENV["SSL_CERT_DIR"] = cert_dir
535538
end
536539

537540
function __init__()

0 commit comments

Comments
 (0)