git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* error: refs/remotes/origin/HEAD points nowhere!
@ 2008-03-05 11:38 Teemu Likonen
  2008-03-05 21:24 ` Junio C Hamano
  2008-03-07 21:02 ` [PATCH/RFC] Make "git remote rm <remote>" remove file refs/remotes/<remote>/HEAD Teemu Likonen
  0 siblings, 2 replies; 10+ messages in thread
From: Teemu Likonen @ 2008-03-05 11:38 UTC (permalink / raw)
  To: git

Hi,

Very annoying error "error: refs/remotes/origin/HEAD points nowhere!" 
keeps popping up almost all the time after user has removed remote 
repository "origin". Here's a kind of real-life example:

I have cloned some remote repository:

  git clone git://project/project.git

After a while I start tracking some other remote repository. I do this:

  git remote add ng git://project-ng/project.git

Then I do "git fetch ng" and probably also "git checkout --track -b 
master-ng ng/master". Then I find the old "origin" useless to me so I 
remove it with "git remote rm origin".

It seems that refs/remotes/origin/HEAD is still left in my repository 
and hence I keep getting these annoying error messages all the time. 
Well, I know how to delete this file, but I believe that git should 
have deleted it when I called "git remote rm origin". Am I right? What 
is the purpose of this refs/remotes/origin/HEAD in the first place?

Anyway, thank you guys for this excellent tool and VCS/SCM system. 
Generally git is really joy to use and very powerful. Thanks.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-03-09 10:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 11:38 error: refs/remotes/origin/HEAD points nowhere! Teemu Likonen
2008-03-05 21:24 ` Junio C Hamano
2008-03-06  7:50   ` Teemu Likonen
2008-03-08 22:40   ` [PATCH] builtin remote rm: remove symbolic refs, too Johannes Schindelin
2008-03-09 10:24     ` Junio C Hamano
2008-03-07 21:02 ` [PATCH/RFC] Make "git remote rm <remote>" remove file refs/remotes/<remote>/HEAD Teemu Likonen
2008-03-07 22:18   ` Teemu Likonen
2008-03-08  1:45   ` Junio C Hamano
2008-03-08  1:46   ` Junio C Hamano
2008-03-08  6:16     ` Teemu Likonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).