diff options
author | Shawn O. Pearce <sop@google.com> | 2009-08-22 18:50:45 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-01-09 17:39:22 -0800 |
commit | 1b5a4a0c5de5fdaa4f8907357a0aa80e365dd199 (patch) | |
tree | 64b42dd765bea192245051b41ff21e0b45ff8e7c /subcmds/forall.py | |
parent | de8b2c4276afec670dee5c7942ac74f2d0c66500 (diff) | |
download | git-repo-1b5a4a0c5de5fdaa4f8907357a0aa80e365dd199.tar.gz |
forall: Silently skip missing projects
If a project is missing locally, it might be OK to skip over it
and continue running the same command in other projects.
Bug: REPO-43
Change-Id: I64f97eb315f379ab2c51fc53d24ed340b3d09250
Signed-off-by: Shawn O. Pearce <sop@google.com>
(cherry picked from commit d4cd69bdef28c5a9287c85c48a18ce621eba689d)
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 8209c806..d3e70ae1 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -169,6 +169,12 @@ terminal and are not redirected. | |||
169 | else: | 169 | else: |
170 | cwd = project.worktree | 170 | cwd = project.worktree |
171 | 171 | ||
172 | if not os.path.exists(cwd): | ||
173 | if (opt.project_header and opt.verbose) \ | ||
174 | or not opt.project_header: | ||
175 | print >>sys.stderr, 'skipping %s/' % project.relpath | ||
176 | continue | ||
177 | |||
172 | if opt.project_header: | 178 | if opt.project_header: |
173 | stdin = subprocess.PIPE | 179 | stdin = subprocess.PIPE |
174 | stdout = subprocess.PIPE | 180 | stdout = subprocess.PIPE |