git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] submodule update continue
@ 2011-05-15 12:42 Fredrik Gustafsson
  2011-05-15 12:42 ` [RFC PATCH 1/2] sh-setup: Make die take the error code as param Fredrik Gustafsson
  2011-05-15 12:42 ` [RFC PATCH 2/2] submodule update: continue when a checkout fails Fredrik Gustafsson
  0 siblings, 2 replies; 5+ messages in thread
From: Fredrik Gustafsson @ 2011-05-15 12:42 UTC (permalink / raw)
  To: git; +Cc: jens.lehmann, hvoigt, gitster

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-15 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-15 12:42 [RFC PATCH 0/2] submodule update continue Fredrik Gustafsson
2011-05-15 12:42 ` [RFC PATCH 1/2] sh-setup: Make die take the error code as param Fredrik Gustafsson
2011-05-15 20:46   ` Junio C Hamano
2011-05-15 12:42 ` [RFC PATCH 2/2] submodule update: continue when a checkout fails Fredrik Gustafsson
2011-05-15 21:26   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).