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

Re: git-push error handling

From
Jeff King <peff@peff.net>
Date
Jun 21, 2012, 06:07 UTC
Message-ID
<20120621060724.GA19485@sigill.intra.peff.net>
In-Reply-To
<jrt949$o3g$1@dough.gmane.org>
On Wed, Jun 20, 2012 at 02:43:04PM -0500, Neal Kreitzinger wrote:
> Does git push always return an error to "if [ $? -ne 0 ]" when the
> push fails?  Is this sufficient to verify your git-push worked?

It should (and if it doesn't, it's a bug). But do note that even a failed push may have been partially successful (e.g., pushed some refs but failed on others).

-Peff
Previous: Neal Kreitzinger
Message 2 of 2 in “git-push error handling”
  1. Neal KreitzingerJun 20, 2012
  2. Jeff KingJun 21, 2012

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.