Add better support for disabling SSL or using custom SSL certs for project import
Original discussion here: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3892#note_5087741
Right now if you attempt to import from GitHub Enterprise or some other site that uses self-signed certs, you have to:
- Set
verify_ssl
tofalse
- Disable SSL verification in git via
git config --global http.sslVerify false
Ideally, we want to provide users:
- The ability to specify the certs to verify against
- If they disable SSL verification with
verify_ssl
, we runGIT_SSL_NO_VERIFY=true git clone XXX
instead of setting it globally