【问题标题】:Call git pull from emacs hang emacs从 emacs 调用 git pull 挂起 emacs
【发布时间】:2013-10-21 01:03:41
【问题描述】:

在 emacs *scratch* 缓冲区中评估 (shell-command-to-string "git pull -q") 会挂起 emacs。

从 bash 中的htop,我注意到在从 emacs 分叉的git pull 进程结束后,总是留下一个 ssh 进程 ssh: git@myrepo.org:22 其参数是我的远程 git 存储库 URL。 而一旦有ssh进程,(shell-command-to-string "git pull -q")正常退出。

除了git pull -q在bash下正常工作。

其他系统信息uname -a: Linux Edge 3.8.0-31-generic #46~precise1-Ubuntu SMP Wed Sep 11 17:49:16 UTC 2013 i686 i686 i386 GNU/Linux

有人知道吗?

【问题讨论】:

  • 您使用的是 SSH 密钥吗?

标签: git shell emacs ssh git-pull


【解决方案1】:

我尝试在我的盒子上复制它,但不能。缓冲区评估良好。

另一方面,如果您想与 Emacs 中的 Git 存储库进行交互,最好使用 magit package

【讨论】:

  • 我一直在使用magit,而(magit-git-exit-code "git pull -q") 产生相同的结果。
  • 我可能会遗漏您正在尝试做的事情的细节。如果我必须这样做,我会做(magit-pull)。你有什么理由不能使用它吗?
  • 我想要一个批处理的git pull & git push 来自动同步东西,只关心退出状态。
猜你喜欢
  • 1970-01-01
  • 2017-10-17
  • 2010-10-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-12-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多