From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
To: David Kirk <davemkirk@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Strange happening with 'git fetch'
Date: Thu, 7 Jan 2010 20:07:42 +0200 [thread overview]
Message-ID: <20100107180742.GA27643@Knoppix> (raw)
In-Reply-To: <de73f1891001070959h30e4ecebw7c852f0417647419@mail.gmail.com>
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
prev parent reply other threads:[~2010-01-07 18:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 17:59 Strange happening with 'git fetch' David Kirk
2010-01-07 18:07 ` Ilari Liusvaara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100107180742.GA27643@Knoppix \
--to=ilari.liusvaara@elisanet.fi \
--cc=davemkirk@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).