SourceTree ssh-agent路径错误 [英] SourceTree ssh-agent path is wrong

查看:528
本文介绍了SourceTree ssh-agent路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将SourceTree更新到版本1.6.15,并在那之后改变/搞砸了一些路径。
在更新之前,所有内容都没有任何问题。



现在ssh-agent无法启动,窗口会在几毫秒内自动关闭。



当我尝试打开ssh-agent时,sourcetree(sourcetree.log)中的日志显示此日志:

  2015-07-13T09:30:32:尝试启动ssh-agent.exe进程[C:\ Program Files(x86)\Git\usr\bin\ssh -agent.exe] 

我检查了ssh-agent的路径,它是错误的,它应为:

  C:\程序文件(x86)\Git\bin\ssh-agent.exe 

我一直在使用SourceTree和 System Git



我能够解决该问题的唯一方法是更改​​Git的SourceTree选项并使用嵌入式Git



我想要避免拥有两个Git环境并仅使用System Git。有没有办法改变ssh-agent SourceTree尝试打开的路径?



如果我从命令行使用git,一切正常,所以我猜

解决方案

看起来好像这是 SourceTree版本1.6.15 ,同时尝试修复与新的Git for Windows 2.x兼容性(它具有略微不同的目录布局)。



最好的解决方案IMO只需升级到最新的Git for Windows 2.x预发布版。不要被预发行版所吓倒,它已经处于良好状态,并为您带来所有Git 2.x的优点。

编辑:或者,升级到刚刚发布的SourceTree 1.6.17版。


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.

解决方案

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.

这篇关于SourceTree ssh-agent路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆