I have a script that is trying to clone Git repositories in the background without being able to provide credentials. Thus, it sets GIT_SSH_COMMAND to enable OpenSSH batch mode. An example script that reproduces the problem:
import subprocess, sys popen = subprocess.Popen( ['git', 'clone', 'https://github.com/NiklasRosenstein/flux.git'], env={'GIT_SSH_COMMAND': 'ssh -oBatchMode=yes'}, ) popen.wait() sys.exit(popen.returncode)
Without setting GIT_SSH_COMMAND command works fine. But with that I get
C:\Users\niklas\Desktop λ test Cloning into 'flux'... Error in GnuTLS initialization: Failed to acquire random data. fatal: unable to access 'https://github.com/NiklasRosenstein/flux.git/': Couldn't resolve host 'github.com'
What's going on here? Using Git -for-Windows 2.6.1.windows.1
source share