src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

Support skipping TLS cert validation for individual repositories #1177

Closed alexmt closed 5 years ago

alexmt commented 5 years ago

As demonstrated here custom http client allows disabling cert validation. However, this way only allow to disable cert validation globally. Is there any way to disable cert validation for one repo?

mcuadros commented 5 years ago

Based on this example, you can implement your own client, that avoid the cert verification for only one repository based on the request.