diff options
author | Mikhail Naganov <mnaganov@google.com> | 2019-05-09 12:59:49 -0700 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2019-05-09 13:07:20 -0700 |
commit | b554838ce83d1af6b2f27ae07d5f5732d03c8fdf (patch) | |
tree | 56ff654090c6153ce65c0ab5cdeb732d1caa7736 /project.py | |
parent | 2d095da4f19ec20f56fa8e02bb2012b156d8ee1a (diff) | |
download | git-repo-b554838ce83d1af6b2f27ae07d5f5732d03c8fdf.tar.gz |
Print project name when work tree initialization fails
When syncing a lot of projects in parallel, it is not otherwise
clear which one of them has failed to init work tree.
Change-Id: I8edfb4955023389a499e99cfa511bdc0d2850ba2
Diffstat (limited to 'project.py')
-rwxr-xr-x | project.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2589,7 +2589,7 @@ class Project(object): | |||
2589 | cmd.append('-v') | 2589 | cmd.append('-v') |
2590 | cmd.append(HEAD) | 2590 | cmd.append(HEAD) |
2591 | if GitCommand(self, cmd).Wait() != 0: | 2591 | if GitCommand(self, cmd).Wait() != 0: |
2592 | raise GitError("cannot initialize work tree") | 2592 | raise GitError("cannot initialize work tree for " + self.name) |
2593 | 2593 | ||
2594 | if submodules: | 2594 | if submodules: |
2595 | self._SyncSubmodules(quiet=True) | 2595 | self._SyncSubmodules(quiet=True) |