如何使用 GitPython 库在禁用 SSL 检查的情况下进行克隆。以下代码...
import git
x = git.Repo.clone_from('https://xxx', '/home/xxx/lala')
...产生此错误:
Error: fatal: unable to access 'xxx': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
我知道“export GIT_SSL_NO_VERIFY=1”,但是如何在 python 库中实现它?