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

Re: git-push segfault

From
Jeff King <peff@peff.net>
Date
Feb 24, 2010, 09:23 UTC
Message-ID
<20100224092356.GA28959@coredump.intra.peff.net>
In-Reply-To
<20100224082214.GA31559@inner.home.ulmdo.de>
On Wed, Feb 24, 2010 at 09:22:14AM +0100, Andreas Krey wrote:
Show 8 quoted lines
> On Wed, 24 Feb 2010 01:36:06 +0000, Jeff King wrote:
> ...
> > #!/bin/sh
> ...
> > git clone parent child &&
> > cd child &&
> 
> How about 'set -xe' instead of all the &&?

I long ago stopped trying to remember all of the places where "-e" works and where it doesn't, and just use explicit "&&" (or "|| exit 1"). For example, the subshell in my recipe needs an explicit error check under dash, but will exit correctly using bash. I seem to recall there are some other gotchas, but it has been a long time since I looked.

At any rate, this is not even code for inclusion in git. It is "please cut and paste this and tell me if it breaks". So I am not too worried about style.

-Peff
Previous: Andreas KreyNext: Andreas Krey
Message 5 of 6 in “git-push segfault”
  1. Dale RowleyFeb 24, 2010
  2. Dale RowleyFeb 24, 2010
  3. Jeff KingFeb 24, 2010
  4. Andreas KreyFeb 24, 2010
  5. Jeff KingFeb 24, 2010
  6. Andreas KreyFeb 24, 2010

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.