Git Extensions全部设置,存储库可以克隆,提交可以发布到Gerrit ,但似乎“ 下载Gerrit更改 ”按钮不起作用,因为它给我一个错误说无法检索更改详细信息 。
我把所有这些工作都放在了以前的机器上,但现在我不得不换一个不同的机器,它似乎停止了工作。
检查了2台机器上的所有设置,它们是匹配的。
唯一的区别是前一台机器在Windows 8.1上,而这台机器在Windows 10上 (不知道这是否会导致问题)。
任何帮助,将不胜感激。
GitExtension版本2.49 Git版本2.11.1
编辑:这里要补充的一点是,之前我使用的是Windows 8.1,新机器有Windows 10(不知道是否会导致问题)。 所有遇到同样问题的同事都在Windows 10上。
Git Extensions is all setup, the repository can be cloned, commits can be published to Gerrit, but it seems that the "Download Gerrit Change" button doesn't work as it give me an error saying Could not retrieve the change details.
I got all of this working on a previous machine, but now I had to change to a different one and it seems that it stopped working.
Checked all the settings on the 2 machines and they are matching.
The only difference is that the previous machine was on Windows 8.1 and this one is on Windows 10 (don't know if this can cause a problem).
Any help would be appreciated.
GitExtension version 2.49 Git version 2.11.1
Edit : One thing to add here is that previously I was using Windows 8.1 and the new machine has Windows 10 (don't know if that could cause the problem). All of my colleagues that have the same problem are on Windows 10.
最满意答案
不知道究竟应该在什么阶段发生,但似乎ssh代理应该设置一些环境变量。
GitExtensions正在尝试查找ssh.exe文件的位置,但它失败了,这就是抛出错误消息的原因。
我们需要的环境变量 (到这里,按下WINDOWS KEY + PAUSE - > 高级系统设置 - > 环境变量...... )是:
用户变量:
名称: GIT_SSH
值: C:\ Program Files(x86)\ Git \ usr \ bin \ ssh.exe
系统变量
名称: GIT_SSH
值: C:\ Program Files(x86)\ Git \ usr \ bin
*注意:这是我的情况下的ssh代理(和我的同事),检查你的位置,并替换路径。
希望这可以帮助!
更新:
解决这个问题更简单的方法就是进入GitExtensions - > 工具 - > 设置 - > SSH并选择其他ssh客户端并指定ssh.exe的位置(在我的例子中它是C:\ Program Files(x86) )\ Git \ usr \ bin \ ssh.exe )。
Don't know exactly at what stage this is supposed to happen, but it seems like the ssh agent is supposed to have some environment variables being set.
GitExtensions is trying to look for the location of the ssh.exe file, but it fails and that's why the error message is thrown.
The Environment Variables (to get here, press WINDOWS KEY + PAUSE -> Advanced System Settings -> Environment Variables...) that we need to have are:
User variables:
Name: GIT_SSH
Value: C:\Program Files (x86)\Git\usr\bin\ssh.exe
System variables
Name: GIT_SSH
Value: C:\Program Files (x86)\Git\usr\bin
*Note: This is where the ssh agent is in my case (and my colleagues), check where your one is and replace the paths.
Hope this helps!
UPDATE:
An even easier way of sorting out this problem is just to go into GitExtensions -> Tools -> Settings -> SSH and select Other ssh client and specify the location of ssh.exe (in my case it was C:\Program Files (x86)\Git\usr\bin\ssh.exe).
更多推荐
发布评论