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:

  • How to search for an old git commit for when a feature broke
  • How can I squash a range of git commits together given starting and ending SHA's
  • Zip latest committed changes only
  • How to to disable Git end-of-line (CRLF to LF) across all clones/machines?
  • 'git add .' is not working after merge command of two branches
  • How can I get content of a file from git index?
  • 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?

  • Git branch named origin/HEAD -> origin/master
  • Enabling auto-completion in git bash on windows?
  • Git push fail to a Windows share
  • git fetch origin --prune doesn't delete local branches?
  • Git: Renaming a directory in a branch
  • How can you get one file out of a another branch of a Git repository/
  • 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.