fatal: bad revision 'HEAD'

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

fatal: bad revision 'HEAD'

From: Joel Mahoney <hidden>
Date: 2016-06-15 22:47:12

Hello,

I am having trouble installing Ruby on Rails plugins from github.   
when I run e.g. script/install plugin git://github.com/thoughtbot/ 
paperclip.git I get:

 > 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

I don't have any problems with git in general, but this error happens  
every time I try to install from github - even when it's a brand new  
rails app.

the github support team tells me it looks like a git issue - any  
suggestions would be appreciated!

thanks,
Joel

Re: fatal: bad revision 'HEAD'

From: Jeff King <hidden>
Date: 2016-06-15 22:47:12

On Sun, Aug 09, 2009 at 03:15:46PM -0600, Joel Mahoney wrote:
I am having trouble installing Ruby on Rails plugins from github.
when I run e.g. script/install plugin git://github.com/thoughtbot/
paperclip.git I get:
quoted
Initialized empty Git repository in /path/to/my/project/vendor/
plugins/paperclip/.git/
quoted
fatal: bad revision 'HEAD'
refusing to pull with rebase: your working tree is not up-to-date
I can "git clone" that repository just fine. What is it exactly that
installing a Rails plugin does with git? Can you try setting GIT_TRACE=1
in the environment and running your script to show us what git commands
it is executing?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help