Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I am updating code that was previously Linux-only to support Windows, and my tests are failing on Windows with errors like
I can successfully execute the same command that is shown for "cmdline:" manually at the Windows command prompt. The connection uses ssh keys, so no password is used/needed. Any ideas? |
BetaWas this translation helpful?Give feedback.
All reactions
I finally figured out the problem. I was running this through WinPython, and its batch files that set the environment prior to running python.exe assign a value to HOME (that is not the current user's home directory). Apparently, that confuses ssh because when I tweaked my process for starting python.exe in WinPython to clear the HOME variable, that fixed the problem.
…so the problem has nothing to do with GitPython, but others attempting to use GitPython under WinPython will likely encounter the same problem.
My specific fix was to stop using WinPython's scripts/python.bat to run Python and to instead call its scripts/env.bat to set up the environment, thenSET HOME=
, then executeif not…
Replies: 2 comments
-
It looks like SSH is refusing to work in the environment that the tests are executed in, hence it can't authenticate and the clone fails. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I finally figured out the problem. I was running this through WinPython, and its batch files that set the environment prior to running python.exe assign a value to HOME (that is not the current user's home directory). Apparently, that confuses ssh because when I tweaked my process for starting python.exe in WinPython to clear the HOME variable, that fixed the problem. …so the problem has nothing to do with GitPython, but others attempting to use GitPython under WinPython will likely encounter the same problem. My specific fix was to stop using WinPython's scripts/python.bat to run Python and to instead call its scripts/env.bat to set up the environment, then |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
This discussion was converted from issue #1964 on October 04, 2024 05:10.