【发布时间】: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 ... 时,它也会挂起。
- 我可以很好地克隆该存储库:网络似乎不是问题。
- git 在我的路上。
- 在运行 rails -g foo 时,我收到很多关于目录不在 git 下的错误。应该有关系吧。
-
'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