SourceTree ssh-agent path is wrong

懵懂的女人 提交于 2020-01-06 19:27:54

问题


I have updated SourceTree to version 1.6.15 and after that some paths where changed/messed up. Before the update everything went without any issue.

Now the ssh-agent fails to start, the window closes automatically in a matter of milliseconds.

The logs in the sourcetree (sourcetree.log) show this log when I try to open the ssh-agent:

2015-07-13T09:30:32: Attempt to start ssh-agent.exe process [C:\Program Files (x86)\Git\usr\bin\ssh-agent.exe]

I have checked the path of the ssh-agent and it is wrong, it should be:

C:\Program Files (x86)\Git\bin\ssh-agent.exe

I had been using SourceTree with the System Git.

The only way I had been able to fix the issue was by changing SourceTree options for Git and use the Embedded Git.

I want to avoid having two Git environments and use only the System Git. Is there a way to to change the path of the ssh-agent SourceTree tries to open?

If I use git from the command line, everything works fine, so I guess the Paths are all set up correctly.


回答1:


Looks to me as if this is a regression in SourceTree version 1.6.15 while trying to fix compatibility with the new Git for Windows 2.x (which has a slightly different directory layout).

The best solution IMO is to simply upgrade to the latest Git for Windows 2.x pre-release. Don't get deterred by "pre-release", it's already in good shape, and brings you all the Git 2.x goodness.

Edit: Alternatively, upgrade to SourceTree version 1.6.17 which was just released.




回答2:


SourceTree released a patch update with version 1.6.17 which fixes the wrong paths that create this issue.

If you choose to stick with an version lower than that, use the embedded Git environment or use the solution provided by @sschuberth.




回答3:


I had the same issue, my solution is that going to Tools/Options, Git tab, "Use embedded Git" instead of "Use System Git". Hope it helps.



来源:https://stackoverflow.com/questions/31376965/sourcetree-ssh-agent-path-is-wrong

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!