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

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

Previous: Paul CampbellNext: Paul Campbell
Message 4 of 6 in “contrib/subtree/t: Added tests for .gitsubtree support”
  1. 2/3 contrib/subtree/t: Added tests for .gitsubtree supportPaul Campbell, Feb 15, 2013
  2. Jonathan NiederFeb 15, 2013
  3. Paul CampbellFeb 15, 2013
  4. Jonathan NiederFeb 17, 2013
  5. Paul CampbellFeb 17, 2013
  6. Jonathan NiederFeb 18, 2013

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.