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

Re: [PATCH] git-submodule - Fix errors regarding resolve_relative_url

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 14, 2008, 18:28 UTC
Message-ID
<7vd4mjhnwk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1213463381-3316-1-git-send-email-mlevedahl@gmail.com>
Mark Levedahl <mlevedahl@gmail.com> writes:
> git-submodule was invoking "die" from within resolve-relative-url, but
> this does not actually cause the script to exit. Fix this by returning
> the error to the caller and have the caller exit.

Thanks for catching this. But don't you think the first hunk is unnecessary?

> While we're at it, clean up the quoting on invocation of
> resolve_relative_url as it was wrong.

Yup. if you make it pass through the non-zero exit status that would be perfect, like this:

    realrepo=$(resolve_relative_url "$repo") || exit
Previous: Mark LevedahlNext: Mark Levedahl
Message 2 of 3 in “git-submodule - Fix errors regarding resolve_relative_url”
  1. git-submodule - Fix errors regarding resolve_relative_urlMark Levedahl, Jun 14, 2008
  2. Junio C HamanoJun 14, 2008
  3. git-submodule - Fix errors regarding resolve_relative_urlMark Levedahl, Jun 14, 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.