浏览代码

Merge "Print project name when work tree initialization fails"

Jonathan Nieder 6 年之前
父节点
当前提交
0968570df2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      project.py

+ 1 - 1
project.py

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