You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use System.Process.readProcess and System.Process.readProcessWithExitCode, which pass canned stdin to git. When git wants input from the user (e.g. ssh public key passphrase or https credentials), it fails, resulting in an error like:
I couldn't find the ref v2 in the repository at [email protected]:unisonweb/base ;
or
I couldn't find the ref main in the repository at [email protected]:unisonweb/base ;
The workaround is to set up your environment so that git doesn't ask for credentials, e.g. using ssh-agent to cache your passphrase. If ssh-agent doesn't work for you (it didn't for me in windows (#598)), then you have to not have a passphrase. 😬
Another possible, better workaround for Windows is that there seems to be some sort of Microsoft gui authentication helper for signing into Github via https without stdin. I haven't tried testing this; it's just something that showed up for me when I was trying to accomplish something else.
We currently use
System.Process.readProcess
andSystem.Process.readProcessWithExitCode
, which pass cannedstdin
togit
. Whengit
wants input from the user (e.g. ssh public key passphrase or https credentials), it fails, resulting in an error like:or
The workaround is to set up your environment so that
git
doesn't ask for credentials, e.g. usingssh-agent
to cache your passphrase. Ifssh-agent
doesn't work for you (it didn't for me in windows (#598)), then you have to not have a passphrase. 😬A fix would be similar to whatever
git
is doing to pass input through tossh
. Maybe someCreateProcess
](https://hackage.haskell.org/package/process-1.6.9.0/docs/System-Process.html) settings?The text was updated successfully, but these errors were encountered: