【发布时间】:2013-11-16 08:27:15
【问题描述】:
我正在尝试使用
更改我的提交消息git rebase -i HEAD~2
但是当我这样做时,我得到了一个带有消息This application will not run on your computer. Sorry!的窗口
在终端我有:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/
usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212:
warning: Insecure world writable dir /Volumes/SSS/Work in PATH, mode 040777
button returned:OK
Successfully rebased and updated refs/heads/master.
我有 OSX 10.9。它有什么问题?
更多信息:
git 版本 1.7.11.3
我不应该有钩子。但可能是我错过了什么。 (我检查了~/.gitconfig)
当我将 core.editor 从 emacs 更改为 nano 时,错误消失了。所以问题似乎与emacs有关。
【问题讨论】:
-
由于您使用的是
rebase -i,也许是您配置的编辑器导致了问题?git config --get core.editor返回什么? -
@robertklep,我更新了我的答案。
-
它与 Emacs 有关,请参阅 this piece of code 其中包含您遇到的错误。不知道如何解决这个问题,不是 Emacs 也不是 Ruby 专家 :)
-
是的。我改成了 nano,这很有帮助。
-
哦,我现在明白了,那是一些产生错误的 Ruby 脚本。我之前的评论的意思是,使用
magit时您仍将处于终端中,不必是其中一个。