mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-09-05 14:14:45 +08:00
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
This commit is contained in:
parent
2d095da4f1
commit
b554838ce8
@ -2589,7 +2589,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)
|
||||||
|
Loading…
Reference in New Issue
Block a user