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

[RFC PATCH 0/2] submodule update continue

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
May 15, 2011, 12:42 UTC
Message-ID
<cover.1305462132.git.iveqy@iveqy.com>

When running submodule update git dies after the first error. This is inconvenient if a submodule is unavailable. Therefore this patch series makes git continue with the next submodule if a submodule is unavailable.

This does only apply to checkout errors, rebase and merge errors will result with a direct exit with code 2.

A checkout error makes git continue to the next submodule and when done with all submodules exit with code 1.

Still missing are three tests (recursive checkout, merge and recurive rebase).

This is the second iteration of this patch series. The first can be found on: http://thread.gmane.org/gmane.comp.version-control.git/171895

Fredrik Gustafsson (2):
  sh-setup: Make die take the error code as param.
  submodule update: continue when a checkout fails
 git-sh-setup.sh             |    6 +++++-
 git-submodule.sh            |   42 ++++++++++++++++++++++++++++++++++++------
 t/t7406-submodule-update.sh |   29 +++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+), 7 deletions(-)
-- 
1.7.5.1.219.ge2152.dirty
Next: Fredrik Gustafsson
Message 1 of 5 in “submodule update continue”
  1. 0/2 submodule update continueFredrik Gustafsson, May 15, 2011
  2. 1/2 sh-setup: Make die take the error code as param.Fredrik Gustafsson, May 15, 2011
  3. Junio C HamanoMay 15, 2011
  4. 2/2 submodule update: continue when a checkout failsFredrik Gustafsson, May 15, 2011
  5. Junio C HamanoMay 15, 2011

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.