Rails"script/plugin"安装http://github.com...git挂起'git pull'

ber*_*kes 2 git github ruby-on-rails-plugins

每当我运行rails脚本/插件安装来使用git安装插件时,从github它就会"挂起".

$ script/plugin -v install http://github.com/ryanstout/blog_kit.git
Run Code Online (Sandbox Code Playgroud)

它"挂起".-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
Run Code Online (Sandbox Code Playgroud)

这就是它挂起的地方.('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)

    所以看起来实际上有一个连接,但没有任何东西被拉入.

我有什么想法可以深入研究这个问题?我错过了一些README吗?

ber*_*kes 6

感谢ewall,我找到了答案.

代替:

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

使用

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