# Plugin install not installing git plugins

**URL:** <https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757>\
**Category:** Rails\
**Created:** [July 27, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757 "2009-07-27T17:13:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beta\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc29f/32.png) [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Post date:** [July 27, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757/1 "2009-07-27T17:13:32Z")

</div>

Hi everybody:

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:** ![Beta\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc29f/32.png) [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Post date:** [July 27, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757/2 "2009-07-27T17:17:38Z")

</div>

2009/7/27 Beta Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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?

Have you installed git itself?

Colin

---

<div class="post-metadata">

**Author:** ![Beta\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc29f/32.png) [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Post date:** [July 27, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757/3 "2009-07-27T17:25:15Z")

</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:** ![Beta\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc29f/32.png) [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Post date:** [July 27, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757/4 "2009-07-27T18:26:42Z")

</div>

2009/7/27 Beta Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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.

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:** ![Beta\_Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc29f/32.png) [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Post date:** [July 29, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757/5 "2009-07-29T13:44:18Z")

</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?
