petemoore / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 1 forks source link

`repo forall -c <command>' should abort iteration if <command> yields non-zero exit status #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Shawn Pearce <sop@google.com> on Fri Mar 20 07:53:46 PDT 2009
Source: JIRA REPO-17
Affected Version: 1.6.4

From 
http://groups.google.com/group/repo-discuss/browse_thread/thread/234ae79d11a39c8
9:

repo forall's current behaviour is to continue processing even if a command
had failed.  This can be difficult to detect command failure that happened
early on in the output when each repo prints a few lines of its own.

Looking at the code it does seem possible to detect if a command failed by
checking the exit status of repo itself, but it would be nice to have the
option to abort processing in the event of command failure as well, even if as
an extra command-line switch.

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by sop+code@google.com on 24 Sep 2009 at 11:11

GoogleCodeExporter commented 9 years ago
https://gerrit-review.googlesource.com/#/c/39377/

Original comment by david.pu...@sonymobile.com on 14 Feb 2013 at 8:26