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

command return values

From
BCBrian Craft <bcboy@thecraftstudio.com>
Date
Jul 11, 2010, 04:11 UTC
Message-ID
<AANLkTimQcqhD8FClAXef5dGAWRDbAGdVBmIVXxotzKoa@mail.gmail.com>
btw, the "faq" link on http://git-scm.com/ is broken.

I'm finding that "git clone" doesn't return useful error codes, e.g. trying to clone from a bad repository. Also, it doesn't abort if you try to clone a branch that doesn't exist. The command succeeds, leaving you with the wrong result. I haven't found a way to tell when the command really succeeds, except for scraping the output.

What's the deal?
b.c.
Next: Sverre Rabbelier
Message 1 of 4 in “command return values”
  1. Brian CraftJul 11, 2010
  2. Sverre RabbelierJul 11, 2010
  3. Jeff KingJul 11, 2010
  4. Brian CraftJul 11, 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.