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

Re: How can I tell, from a script, if “git cherry-pick” fails?

From
KLKevin Layer <layer@known.net>
Date
Nov 2, 2016, 15:32 UTC
Message-ID
<CAGSZTjLreF1Uj5cARt6=1vMUDCrbSQ11ZbCin7YzYGZdEmR3fg@mail.gmail.com>
In-Reply-To
<CAGSZTjKg1=tMYgFiwys=ePVT+3p6KTa1mQ0fP9pPns-Nvd+6fA@mail.gmail.com>

Nevermind. It's working as it should. The script that was doing the cherry-pick was doing it in an if and I neglected to exit with a non-zero status. Sorry for the noise.

On Wed, Nov 2, 2016 at 8:14 AM, Kevin Layer <layer@known.net> wrote:
Show 11 quoted lines
> If the cherry-pick fails due to a merge conflict, it just returns an
> exit status of 0.  I have a script that does a series of cherry-picks
> and I need to know if they succeed.
>
> I'm sure this has been covered before.
>
> Using git version 1.8.3.1.
>
> Thank you.
>
> Kevin
Previous: Kevin LayerNext: Pranit Bauva
Message 2 of 3 in “How can I tell, from a script, if “git cherry-pick” fails?”
  1. Kevin LayerNov 2, 2016
  2. Kevin LayerNov 2, 2016
  3. Pranit BauvaNov 2, 2016

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.