From: Jonathan Nieder Date: Sun, 17 Feb 2013 11:37:23 GMT Subject: Re: [PATCH 2/3] contrib/subtree/t: Added tests for .gitsubtree support Message-ID: <20130217113723.GA9882@elie.Belkin> In-Reply-To: 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