# Plugin install not installing git plugins

**URL:** <https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582>\
**Category:** rubyonrails-talk\
**Created:** [July 27, 2009, 3:12pm UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582 "2009-07-27T15:12:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beta](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@Beta](https://discuss.rubyonrails.org/u/Beta)\
**Post date:** [July 27, 2009, 3:12pm UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582/1 "2009-07-27T15:12:07Z")

</div>

Hi everybody:

&nbsp;&nbsp;I'm working in an upgraded app (from version 1.x of Rails to 2.3.2), and I can't install any plugin from the git repositories.

For instance, if I run

ruby script/plugin install git://github.com/dchelimsky/rspec.git -r 'refs/tags/1.2.7'

nothing happens. The command exit without any comment, and nothing is installed. I have installed various plugins from the old svn respositories without any problem. It seems to be an issue with git (I've tried many git plugins, and it behaves always like that). Any ideas?

Thanks in advance, Beta

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [July 27, 2009, 3:16pm UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582/2 "2009-07-27T15:16:23Z")

</div>

Have you installed git itself?

Colin

---

<div class="post-metadata">

**Author:** ![Beta](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@Beta](https://discuss.rubyonrails.org/u/Beta)\
**Post date:** [July 27, 2009, 3:24pm UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582/3 "2009-07-27T15:24:04Z")

</div>

Somehow, your question solves the puzzle: None of my gems binaries (rails, spec, git, etc...) are in the path, that's the problem. It's weird. I will try to fix that up and see.

Thank you very much! Beta

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [July 27, 2009, 4:25pm UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582/4 "2009-07-27T16:25:40Z")

</div>

I actually meant the git application itself rather than the gems.

If you are on Ubuntu or similar did you remember to 'sudo install' when installing gems, otherwise it will put them in a home directory. If so then I believe you can just delete (or rename initially) that directory and re-install them with sudo. I keep forgetting to do that that myself.

Colin

---

<div class="post-metadata">

**Author:** ![joelmahoney](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@joelmahoney](https://discuss.rubyonrails.org/u/joelmahoney)\
**Post date:** [July 29, 2009, 7:13am UTC](https://discuss.rubyonrails.org/t/plugin-install-not-installing-git-plugins/44582/5 "2009-07-29T07:13:24Z")

</div>

I am having what I think is a similar (path-related) issue.

when I try to install a plugin from a git repository I get:

ruby script/plugin install git://github.com/thoughtbot/paperclip.git Initialized empty Git repository in /path/to/my/project/vendor/plugins/ paperclip/.git/ fatal: bad revision 'HEAD' refusing to pull with rebase: your working tree is not up-to-date

any suggestions?
