Pull the first item in the list

This commit is contained in:
twangboy 2018-01-17 14:08:36 -07:00
parent 52d6d78150
commit 160dd7c6ce
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -215,8 +215,8 @@ def _git_run(command, cwd=None, user=None, password=None, identity=None,
'ssh.exe')]
for globmask in globmasks:
ssh_exe = glob.glob(globmask)
if os.path.isfile(ssh_exe):
env['GIT_SSH_EXE'] = ssh_exe
if ssh_exe and os.path.isfile(ssh_exe[0]):
env['GIT_SSH_EXE'] = ssh_exe[0]
break
else:
raise CommandExecutionError(