How can I tell, from a script, if “git cherry-pick” fails?
- From
- Kevin Layer <layer@known.net>
- Date
- Nov 2, 2016, 15:14 UTC
- Message-ID
- <CAGSZTjKg1=tMYgFiwys=ePVT+3p6KTa1mQ0fP9pPns-Nvd+6fA@mail.gmail.com>
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