Re: [PATCH 2/3] contrib/subtree/t: Added tests for .gitsubtree support
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Feb 17, 2013, 11:37 UTC
- Message-ID
- <20130217113723.GA9882@elie.Belkin>
- In-Reply-To
- <CALeLG_nLz9Gfqcfk4EcWixRXbWC0x0GUVFDAKD20DGbkhRNWvQ@mail.gmail.com>
Paul Campbell wrote:
> Is there was a better way to verify that the push operation succeeds > then grepping for a SHA1?
IIRC then when a push fails, it will exit with nonzero status (so the usual &&-chaining would propagate the error).
Alternatively, one can fetch, ls-remote, or enter the target repo and use history inspection tools to check that the result is as expected.
Hope that helps, Jonathan