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

BUG: git remote show origin => error code 1

From
Jari Aalto <jari.aalto@cante.net>
Date
Sep 29, 2007, 18:13 UTC
Message-ID
<ps01nxvd.fsf@blue.sea.net>
Consider this:
    $ git remote show origin
    No such remote origin
    $ echo $?
    0

Perhaps the code should return non-zero in this case, so that shell scripts could use construct:

    git remote show origin; || <another action>
Jari
-- 
Welcome to FOSS revolution: we fix and modify until it shines
Next: Junio C Hamano
Message 1 of 4 in “BUG: git remote show origin => error code 1”
  1. Jari AaltoSep 29, 2007
  2. Junio C HamanoSep 29, 2007
  3. prune, rm, show remote: exit with error code 1 on failureJari Aalto, Sep 30, 2007
  4. Junio C HamanoSep 30, 2007

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.