diff options
author | Shawn O. Pearce <sop@google.com> | 2009-08-22 18:50:45 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-08-22 18:51:02 -0700 |
commit | d4cd69bdef28c5a9287c85c48a18ce621eba689d (patch) | |
tree | 775577d2a74a7ed131dec7c259441b45833eee04 /subcmds/forall.py | |
parent | d2dfac81ad6a060179b4b2289060af2dc7a5cdfd (diff) | |
download | git-repo-d4cd69bdef28c5a9287c85c48a18ce621eba689d.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>
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 b66313d7..6bd867e7 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 |