Sublime Text 3 的 Gitgutter - Git 无法获取版本

Sublime Text 3's Gitgutter - Git Version could not be acquired

我在 Sublime Text 3 上安装了 Gitgutter 的包,但它似乎不起作用,我调试了支持信息并得到了这个:

I also tried re-installing it, and still does not compare the scripts with the current HEAD's

我看到 Gitgutter 的实现非常自动,我不知道它是否与使用 Sourcetree 的 Git 客户端有关。我想我应该参考 Git 的路径,我在哪里可以找到它?

如果有更多我可能遗漏的必需信息,请告诉我。谢谢。

错误消息来自 modules/support.py

def git_version():
    """Read version of git binary."""
    try:
        return git('--version')
    except Exception as exception:
        print('%s: %s' % (PACKAGE, exception))
        return 'git version could not be acquired!'

安装过程描述in issue 452

issue 455所述:

With git for windows installed and registered to the PATH and works from console, GitGutter should find it out of the box on Windows.

因此请尝试使用 从 CMD 启动您的 SBT 以查看问题是否仍然存在。