Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NetworkOptions.ca_roots_path() to find certificates #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/Git.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ packages. This is implemented with the `git` function, which returns a
module Git

import Git_jll
import NetworkOptions

export git

Expand Down
2 changes: 1 addition & 1 deletion src/git_function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down