git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 5, 2007, 23:22 UTC
Message-ID
<7vhck0mg5y.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071105225540.GA10988@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Which I guess is what you were trying to accomplish by removing the
> peer_ref, though I think that doesn't distinguish between "didn't match
> a remote ref" and "had an error." Perhaps we just need an error flag in
> the ref struct?
I agree that makes the most sense.

As Steffen has been advocating on another thread, depending on your workflow, you do not care about some classes of push errors per pushed refs. The update of the remote and local tracking refs should be done in sync (i.e. if the remote wasn't updated, never update the corresponding local), but it can depend on the nature of the failure if a failure to update a remote ref should result in the non-zero exit status from git-push as a whole.

And to implement that, per-ref error flag would be a good way to go, methinks.

Previous: Jeff KingNext: Daniel Barkalow
Message 6 of 16 in “[bug in next ?] git-fetch/git-push issue”
  1. Pierre HabouzitNov 5, 2007
  2. Daniel BarkalowNov 5, 2007
  3. Jeff KingNov 5, 2007
  4. Daniel BarkalowNov 5, 2007
  5. Jeff KingNov 5, 2007
  6. Junio C HamanoNov 5, 2007
  7. Daniel BarkalowNov 5, 2007
  8. Daniel BarkalowNov 5, 2007
  9. Jeff KingNov 6, 2007
  10. Pierre HabouzitNov 5, 2007
  11. Pierre HabouzitNov 6, 2007
  12. Jeff KingNov 6, 2007
  13. Junio C HamanoNov 6, 2007
  14. Jeff KingNov 6, 2007
  15. Pierre HabouzitNov 6, 2007
  16. Pierre HabouzitNov 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.