Rails “script/plugin” install http://github.com…git hangs on 'git pull'

Whenever I run the rails script/plugin install to install a plugin using git, from github it “hangs”.

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

It “hangs”. the -v gives me the following output:

  • Git for windows paging
  • Redirect stdout and stderr when ampersand(&) is used between commands in bash
  • PHPStorm 8 version control (git) scope to ignore files in PHP_CodeSniffer
  • How to abandon changes?
  • Improving speed of checkout from git (from github)
  • Same tag name for multiple branches
  • 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

    and that is where it hangs. (‘XXX’ is edited by me in this outout)

    When I break off that command, with ^C, and run ‘git pull –depth 1 … by hand, it hangs too.

    1. I can clone that repository just fine: network seems not the problem.
    2. git is in my path.
    3. when running rails -g foo, I get a lot of errors about the directory not being under git. Probably related.
    4. ‘lsof -i | grep github’ shows the following:

      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)

      so it appears there actually is a connection, but nothing gets pulled in.

    Any ideas what I can do to dive deeper into this issue? Did I miss some README?

  • How can I test what my readme.md file will look like before committing to github?
  • Git Bash is slow on startup and commands
  • write git commit version info in app's footer
  • how to remove unwanted files from maven project
  • Bitbucket 5.0.0 is not compatible with git 2.14.0
  • Git errors while pushing
  • One Solution collect form web for “Rails “script/plugin” install http://github.com…git hangs on 'git pull'”

    Thanks to ewall, I found the answer.

    Instead of:

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


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

    Git Baby is a git and github fan, let's start git clone.