diff --git a/Project.toml b/Project.toml index 2861242..7ffb4c9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,10 +1,11 @@ name = "Git" uuid = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2" authors = ["Dilum Aluthge", "contributors"] -version = "1.3.0" +version = "1.4.0" [deps] Git_jll = "f8c6e375-362e-5223-8a59-34ff63f689eb" +NetworkOptions = "ca575930-c2e3-43a9-ace4-1e988b2c1908" [compat] Git_jll = "2.36.1" diff --git a/src/Git.jl b/src/Git.jl index 25f9362..de03081 100644 --- a/src/Git.jl +++ b/src/Git.jl @@ -6,6 +6,7 @@ packages. This is implemented with the `git` function, which returns a module Git import Git_jll +import NetworkOptions export git diff --git a/src/git_function.jl b/src/git_function.jl index 867f697..043a939 100644 --- a/src/git_function.jl +++ b/src/git_function.jl @@ -30,7 +30,7 @@ function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) share_git_core = joinpath(share, "git-core") share_git_core_templates = joinpath(share_git_core, "templates") - ssl_cert = joinpath(dirname(Sys.BINDIR), "share", "julia", "cert.pem") + ssl_cert = NetworkOptions.ca_roots_path() env_mapping = Dict{String,String}() env_mapping["GIT_EXEC_PATH"] = libexec_git_core