Re: [bug in next ?] git-fetch/git-push issue

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Monday, November 5, 2007 - 2:41 pm

On Mon, 5 Nov 2007, Jeff King wrote:


That's an odd combination of behavior: we update some of the refs, leave 
the ones that didn't work alone, report success on the ones that worked, 
but then we forget that some things worked?

If we're going to refuse to update local tracking refs, whose state 
doesn't matter much, we should certainly refuse to update the remote refs, 
which are probably public and extremely important. If we just pushed and 
we fetch, we should see exclusively changes that somebody else (including 
hooks remotely) did, not anything that we ourselves did.


I'd guess -2 is supposed to indicate that there were some errors but some 
things may have worked. If pack_objects() or receive_status() fails, we 
shouldn't update anything locally (because it won't have been accepted 
remotely); otherwise, we should make local updates of every remote efect 
we had, even if we end up returning non-zero to indicate that we didn't do 
everything asked.

	-Daniel
*This .sig left intentionally blank*
-
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 in next ?] git-fetch/git-push issue, Pierre Habouzit, (Mon Nov 5, 10:56 am)
Re: [bug in next ?] git-fetch/git-push issue, Daniel Barkalow, (Mon Nov 5, 11:17 am)
Re: [bug in next ?] git-fetch/git-push issue, Pierre Habouzit, (Mon Nov 5, 11:19 am)
Re: [bug in next ?] git-fetch/git-push issue, Jeff King, (Mon Nov 5, 2:07 pm)
Re: [bug in next ?] git-fetch/git-push issue, Daniel Barkalow, (Mon Nov 5, 2:41 pm)
Re: [bug in next ?] git-fetch/git-push issue, Jeff King, (Mon Nov 5, 3:55 pm)
Re: [bug in next ?] git-fetch/git-push issue, Junio C Hamano, (Mon Nov 5, 4:22 pm)
Re: [bug in next ?] git-fetch/git-push issue, Daniel Barkalow, (Mon Nov 5, 4:46 pm)
Re: [bug in next ?] git-fetch/git-push issue, Daniel Barkalow, (Mon Nov 5, 4:59 pm)
Re: [bug in next ?] git-fetch/git-push issue, Jeff King, (Mon Nov 5, 8:26 pm)
Re: [bug in next ?] git-fetch/git-push issue, Pierre Habouzit, (Tue Nov 6, 10:56 am)
Re: [bug in next ?] git-fetch/git-push issue, Jeff King, (Tue Nov 6, 11:09 am)
Re: [bug in next ?] git-fetch/git-push issue, Junio C Hamano, (Tue Nov 6, 11:23 am)
Re: [bug in next ?] git-fetch/git-push issue, Jeff King, (Tue Nov 6, 11:41 am)
Re: [bug in next ?] git-fetch/git-push issue, Pierre Habouzit, (Tue Nov 6, 12:37 pm)
Re: [bug in next ?] git-fetch/git-push issue, Pierre Habouzit, (Wed Nov 7, 8:11 am)