git - Rails "script/plugin"install http ://github. com...git 卡在 'git pull' 上

标签 git github ruby-on-rails-plugins

每当我运行 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)

    所以看起来确实存在连接,但没有任何东西被 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/

相关文章:

git - 多个模块(主题)的推荐工作流程

git - 将一个存储库的提交 merge 到另一个存储库

git - 在 Yocto 中,如何通过非标准端口上的 ssh 读取 git 存储库

尽管我删除了存储库,但 Android Studio 项目说项目已经在 GitHub 上了。

github - CocoaPods 和 GitHub fork

github - 将拉取请求标记为准备好审查

git - 从 master merge 后压缩功能分支提交

ruby-on-rails - "Was dirty"ActiveRecord 插件?

ruby-on-rails - 他们旧的共享服务器 Rails 部署蓝调

ruby-on-rails - 守护进程自动终止