summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2019-05-09 12:59:49 -0700
committerMikhail Naganov <mnaganov@google.com>2019-05-09 13:07:20 -0700
commitb554838ce83d1af6b2f27ae07d5f5732d03c8fdf (patch)
tree56ff654090c6153ce65c0ab5cdeb732d1caa7736
parent2d095da4f19ec20f56fa8e02bb2012b156d8ee1a (diff)
downloadgit-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
-rwxr-xr-xproject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index 65bc3a04..83d2f6af 100755
--- a/project.py
+++ b/project.py
@@ -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)