如何使用GitPython库进行禁用SSL检查的克隆。以下代码...
我知道 "export GIT_SSL_NO_VERIFY=1",但如何在Python库中实现它?
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库中实现它?