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

Re: [PATCH] git-submodule: remove unnecessary exits when calling resolve_relative_url

From
Johan Herland <johan@herland.net>
Date
Sep 25, 2008, 14:58 UTC
Message-ID
<200809251658.46642.johan@herland.net>
In-Reply-To
<20080925145407.GM3669@spearce.org>
On Thursday 25 September 2008, Shawn O. Pearce wrote:
Show 14 quoted lines
> Johannes Sixt <j.sixt@viscovery.net> wrote:
> > Did you test it? The command inside $(...) is run in its own
> > sub-process, therefore, the die() does not exit the caller, just
> > the sub-process, and the || exit *is* required.
> >
> > BTW, I think that || exit is sufficient; you don't need to add
> > another error message - the one that resolve_relative_url() prints
> > is sufficient.
>
> Exactly.
>
> I think we just need a "|| exit" after each of these
> $(resolve_relative_url) calls.  The original patch that
> started this discussion just needs a "|| exit".

The original patch did exactly that: http://article.gmane.org/gmane.comp.version-control.git/96493

Have fun!
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Shawn O. Pearce
Message 10 of 10 in “Fix submodule sync with relative submodule URLs”
  1. Fix submodule sync with relative submodule URLsJohan Herland, Sep 22, 2008
  2. David AguilarSep 24, 2008
  3. Fix submodule sync with relative submodule URLsJohan Herland, Sep 24, 2008
  4. Shawn O. PearceSep 24, 2008
  5. Johan HerlandSep 24, 2008
  6. David AguilarSep 25, 2008
  7. git-submodule: remove unnecessary exits when calling resolve_relative_urlDavid Aguilar, Sep 25, 2008
  8. Johannes SixtSep 25, 2008
  9. Shawn O. PearceSep 25, 2008
  10. Johan HerlandSep 25, 2008

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.