每当我运行 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)
所以看起来确实存在连接,但没有任何东西被 pull 入。
我可以做些什么来更深入地研究这个问题?我错过了一些自述文件吗?
最佳答案
感谢ewall ,我找到了答案。
而不是:
script/plugin -v install http://github.com/ryanstout/blog_kit.git
使用
script/plugin -v install git://github.com/ryanstout/blog_kit.git
关于git - Rails "script/plugin"install http ://github. com...git 卡在 'git pull' 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3151471/