Re: bug: origin refs updated too soon locally

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn O. Pearce
Date: Wednesday, October 17, 2007 - 9:53 pm

Perry Wagle <wagle@cs.indiana.edu> wrote:

Heh.  Yes, that's a known bug.  Someone should really fix it.
The problem is we are updating the local tracking ref before we
actually get confirmation from the remote side that the remote side
has accepted (or rejected) that update request.

This is probably easier to do after the db/fetch-pack topic is
merged as the improvements there might make this easier.  But I
could be wrong.  Be nice if someone proved me wrong by writing up
a patch for git-send-pack.

For the time being the best way to recover from this is to use
git-fetch rather than git-pull.  Recall that git-pull is defined as
"fetch then merge".  You really just need to refetch the tracking
branches again, so your tracking branches have the same value as
the remote side.

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bug: origin refs updated too soon locally, Perry Wagle, (Wed Oct 17, 6:35 pm)
Re: bug: origin refs updated too soon locally, Perry Wagle, (Wed Oct 17, 6:43 pm)
Re: bug: origin refs updated too soon locally, Shawn O. Pearce, (Wed Oct 17, 9:53 pm)
Re: bug: origin refs updated too soon locally, Jeff King, (Wed Oct 17, 10:28 pm)
[PATCH] t5516: test update of local refs on push, Jeff King, (Wed Oct 17, 11:17 pm)
Re: [PATCH] t5516: test update of local refs on push, Jeff King, (Wed Oct 17, 11:21 pm)
Re: [PATCH] t5516: test update of local refs on push, Shawn O. Pearce, (Wed Oct 17, 11:59 pm)