diff options
| author | Jorge Gonzalez <gjorge@google.com> | 2013-06-03 12:00:06 -0700 |
|---|---|---|
| committer | Jorge Gonzalez <gjorge@google.com> | 2013-06-03 17:52:01 -0700 |
| commit | 5bca9fcdd9dfe4fd31fffe332579f982738b5997 (patch) | |
| tree | 0a10638609166ab4dc5a8d03b2cede472db3e908 /subcmds | |
| parent | 710d4b03911bc6fc0b313af56e81b957ccae2348 (diff) | |
| download | git-repo-5bca9fcdd9dfe4fd31fffe332579f982738b5997.tar.gz | |
Print project name for -p on mirror clients
It doesn't make sense to print the relpath, since there's nothing
checked out there and the dir shouldn't even exist.
Change-Id: Id43631a8e0895929d3a5ad4ca8c2dc9e3d233e70
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/forall.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 7d5f7794..e2a420a9 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
| @@ -260,7 +260,12 @@ without iterating through the remaining projects. | |||
| 260 | first = False | 260 | first = False |
| 261 | else: | 261 | else: |
| 262 | out.nl() | 262 | out.nl() |
| 263 | out.project('project %s/', project.relpath) | 263 | |
| 264 | if mirror: | ||
| 265 | project_header_path = project.name | ||
| 266 | else: | ||
| 267 | project_header_path = project.relpath | ||
| 268 | out.project('project %s/', project_header_path) | ||
| 264 | out.nl() | 269 | out.nl() |
| 265 | out.flush() | 270 | out.flush() |
| 266 | if errbuf: | 271 | if errbuf: |
