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