git/list[1] front-page[2] threads[3] people[4] search[5] about
 

fatal: bad revision 'HEAD'

From
JMJoel Mahoney <joelmahoney@gmail.com>
Date
Aug 9, 2009, 21:15 UTC
Message-ID
<06DCECD0-45F0-4695-86D4-7C54EFE4E640@gmail.com>
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

Next: Jeff King
Message 1 of 11 in “fatal: bad revision 'HEAD'”
  1. Joel MahoneyAug 9, 2009
  2. Jeff KingAug 10, 2009
  3. Jeff KingAug 12, 2009
  4. Junio C HamanoAug 12, 2009
  5. Jeff KingAug 12, 2009
  6. Junio C HamanoAug 12, 2009
  7. Jeff KingAug 13, 2009
  8. Junio C HamanoAug 13, 2009
  9. Jeff KingAug 13, 2009
  10. Joel MahoneyAug 13, 2009
  11. Jeff KingAug 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.