Skip to contentSkip to conversation

fetch2: Allow git to use a different CA Bundle with private keys

PATCH New Jason Wessel 1 participant 1 message May 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2: Allow git to use a different CA Bundle with private keys

Setting BB_ENV_EXTRAWHITE to include GIT_SSL_CAINFO is enough to get "git ls-remote" to work for recipe parsing but it is not enough to get the fetcher to clone properly.

This is because the fetcher has its own idea about what variables should be exported in the environment for some operations.

It is desirable to use alternate CA Bundles for internal testing prior to using public keys for https, so we should allow the GIT_SSL_CAINFO to pass through.

---
 lib/bb/fetch2/__init__.py |    1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/__init__.py +1 -0
index b004dae..36c9554 100644
@@ -783,6 +783,7 @@ def runfetchcmd(cmd, d, quiet = False, cleanup = []):
                   'NO_PROXY', 'no_proxy',
                   'ALL_PROXY', 'all_proxy',
                   'GIT_PROXY_COMMAND',
+                  'GIT_SSL_CAINFO',
                   'SSH_AUTH_SOCK', 'SSH_AGENT_PID',
                   'SOCKS5_USER', 'SOCKS5_PASSWD']
 
Signature · 1 line
1.7.9.5