Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: Strange happening with 'git fetch'

From: Ilari Liusvaara <hidden>
Date: 2016-06-15 22:47:59

On Thu, Jan 07, 2010 at 11:59:39AM -0600, David Kirk wrote:
This is very strange, and defies the understanding of everyone in the
office familiar with git.  Is it a bug, or some feature we don't
understand?

Basically, when I do a 'git fetch', it updates my local repository.
Now nobody else is doing anything, so the remote repository does not
change.  Doing another 'git fetch' should report that nothing needs to
be done and nothing should change.  But instead, it reports something
about the remote HEAD, and changes my local branch 'master' to some
strange location!  Running 'git fetch' again restores it to the
correct state, reporting that it is updating 'master'.  Repeated
invocations will toggle between these two results.  Below is a
transcript from the bash shell.

Can someone please explain this?
I have seen that before. Looks like you have local branch 'HEAD' (_not_
the special ref HEAD) on remote side and that is messing it up.

ls-remote'ing the repository shows 'refs/heads/HEAD', right (there's
also HEAD, that's the required special ref)?

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