【问题标题】:Rails "script/plugin" install http://github.com...git hangs on 'git pull'Rails“脚本/插件”安装 http://github.com...git 挂在“git pull”上
【发布时间】:2010-06-30 16:48:34
【问题描述】:

每当我运行 rails 脚本/插件安装以使用 git 安装插件时,它都会从 github “挂起”。

$ script/plugin -v install http://github.com/ryanstout/blog_kit.git

它“挂起”。 -v 给我以下输出:

Plugins will be installed using http
git init
Initialized empty Git repository in /home/XXX/vendor/plugins/blog_kit/.git/
git pull --depth 1 http://github.com/ryanstout/blog_kit.git

这就是它挂起的地方。 (“XXX”是我在此输出中编辑的)

当我用 ^C 中断该命令并手动运行 'git pull --depth 1 ... 时,它也会挂起。

  1. 我可以很好地克隆该存储库:网络似乎不是问题。
  2. git 在我的路上。
  3. 在运行 rails -g foo 时,我收到很多关于目录不在 git 下的错误。应该有关系吧。
  4. 'lsof -i | grep github' 显示如下:

    git-remot 11710 ber 8u IPv4 182786 0t0 TCP yasmine.fritz.box:42324->github.com:www (CLOSE_WAIT) git-remot 11710 ber 9u IPv4 182798 0t0 TCP yasmine.fritz.box:42325->github.com:www (CLOSE_WAIT) git 11712 ber 8u IPv4 182786 0t0 TCP yasmine.fritz.box:42324->github.com:www (CLOSE_WAIT)

    所以看起来确实存在连接,但没有任何东西被拉入。

有什么想法可以让我更深入地研究这个问题吗?我错过了一些自述文件吗?

【问题讨论】:

  • 您是否尝试过为遥控器使用不同的协议?您的示例显示 HTTP,但 GitHub.com 也支持 Git 和 SSH 协议。
  • 如何使用 ./script/install 来做到这一点?我找不到那个选项。
  • 你的提示帮助了我,命令应该是 git://...

标签: git github ruby-on-rails-plugins


【解决方案1】:

感谢ewall,我找到了答案。

代替:

脚本/插件 -v 安装 http://github.com/ryanstout/blog_kit.git

使用

脚本/插件 -v 安装 git://github.com/ryanstout/blog_kit.git

【讨论】:

  • 谢谢。这也对我有帮助,因为作者建议命令“rails plugin install git@github.com:napcs/lazy_developer.git”,但它不起作用,我使用了“rails plugin install git://github.com/napcs/lazy_developer” .git”,它工作了
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-11
  • 1970-01-01
  • 2021-07-07
  • 1970-01-01
相关资源
最近更新 更多