Skip to content

Commit 97d822d

Browse files
owen-mcCopilot
andcommitted
Avoid configuring Git without a proxy certificate
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fbb9290 commit 97d822d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎go/extractor/registries/registryproxy.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func run[R any](proxiedCmd *ProxiedCmd, fn func(cmd *exec.Cmd) R) R {
266266
applyProxyEnvVars(proxiedCmd.cmd)
267267

268268
// If there are `git_source` registries, configure `git` to trust the proxy certificate.
269-
if len(git_sources) > 0 {
269+
if len(git_sources) > 0 && proxy_cert_file != "" {
270270
applyProxyCertificateToGit()
271271
}
272272

0 commit comments

Comments
 (0)