Merge "Print project name when work tree initialization fails"

This commit is contained in:
Jonathan Nieder 2019-05-16 23:05:53 +00:00 committed by Gerrit Code Review
commit 0968570df2

View File

@ -2590,7 +2590,7 @@ class Project(object):
cmd.append('-v') cmd.append('-v')
cmd.append(HEAD) cmd.append(HEAD)
if GitCommand(self, cmd).Wait() != 0: if GitCommand(self, cmd).Wait() != 0:
raise GitError("cannot initialize work tree") raise GitError("cannot initialize work tree for " + self.name)
if submodules: if submodules:
self._SyncSubmodules(quiet=True) self._SyncSubmodules(quiet=True)