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

git submodule return status

From
DMDaniel Milde <daniel@milde.cz>
Date
Jun 28, 2012, 08:28 UTC
Message-ID
<1340872080.2103.92.camel@athena.dnet>

Hello, if command git submodule update fails, return status is not set properly.

Example: $ git submodule update unknown error: pathspec 'unknown' did not match any file(s) known to git. Did you forget to 'git add'? error: pathspec 'unknown' did not match any file(s) known to git. Did you forget to 'git add'? $ echo $? 0

I suppose the exit status should be 1 or something else, but not 0.

Best regards Daniel Milde

Next: Heiko Voigt
Message 1 of 9 in “git submodule return status”
  1. Daniel MildeJun 28, 2012
  2. Let submodule command exit with error status if path does not existHeiko Voigt, Aug 9, 2012
  3. Junio C HamanoAug 9, 2012
  4. Let submodule command exit with error status if path does not existHeiko Voigt, Aug 11, 2012
  5. Junio C HamanoAug 12, 2012
  6. Heiko VoigtAug 13, 2012
  7. Junio C HamanoAug 13, 2012
  8. Let submodule command exit with error status if path does not existHeiko Voigt, Aug 14, 2012
  9. Junio C HamanoAug 14, 2012

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.