From aef7195d8428ddda96366362d9223b6b100527ae Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 28 Jul 2025 13:29:00 -0400 Subject: [PATCH] fix(git-shim) closes #10020 --- projects/git-scm.org/git-shim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/git-scm.org/git-shim b/projects/git-scm.org/git-shim index 33951f8d6d..19a27cd299 100755 --- a/projects/git-scm.org/git-shim +++ b/projects/git-scm.org/git-shim @@ -34,6 +34,12 @@ find_git_subcommand() { libexec="$(cd "$(dirname "$0")/.." && pwd)"/libexec +# If http.sslCAInfo is set, then we need to unset +# GIT_SSL_CAINFO to respect it. +if "$libexec/git" config --get http.sslCAInfo >/dev/null 2>&1; then + unset GIT_SSL_CAINFO +fi + # extract the git subcommand cmd=$(find_git_subcommand "$@")