git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Kirk <davemkirk@gmail.com>
To: git@vger.kernel.org
Subject: Strange happening with 'git fetch'
Date: Thu, 7 Jan 2010 11:59:39 -0600	[thread overview]
Message-ID: <de73f1891001070959h30e4ecebw7c852f0417647419@mail.gmail.com> (raw)

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?

---- bash console ----
dkirk@RI-ENG-21 /c/Dev/TSWeb2 (master)
$ git fetch
From //10.18.0.53/git/repos/WebTrading
 + 03c60a4...209b0bc HEAD       -> origin/HEAD  (forced update)

dkirk@RI-ENG-21 /c/Dev/TSWeb2 (master)
$ git fetch
From //10.18.0.53/git/repos/WebTrading
 + 209b0bc...03c60a4 master     -> origin/master  (forced update)

dkirk@RI-ENG-21 /c/Dev/TSWeb2 (master)
$ git fetch
From //10.18.0.53/git/repos/WebTrading
 + 03c60a4...209b0bc HEAD       -> origin/HEAD  (forced update)

dkirk@RI-ENG-21 /c/Dev/TSWeb2 (master)
$ git fetch
From //10.18.0.53/git/repos/WebTrading
 + 209b0bc...03c60a4 master     -> origin/master  (forced update)

Thanks,
-David

             reply	other threads:[~2010-01-07 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 17:59 David Kirk [this message]
2010-01-07 18:07 ` Strange happening with 'git fetch' Ilari Liusvaara

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=de73f1891001070959h30e4ecebw7c852f0417647419@mail.gmail.com \
    --to=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).