mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Perform copy file activity when creating a new work directory
Performance improvements in repo sync caused us to skip out of the initial Sync_LocalHalf without ever running CopyFiles, so we didn't create the top level Makefile in new clients whose manifest request one with a <copyfile> element. Now we run CopyFiles after the initial read-tree that populates the project working directory. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
ef9ce1d0a5
commit
9360966bd2
@ -1137,6 +1137,7 @@ class Project(object):
|
|||||||
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")
|
||||||
|
self._CopyFiles()
|
||||||
|
|
||||||
def _gitdir_path(self, path):
|
def _gitdir_path(self, path):
|
||||||
return os.path.join(self.gitdir, path)
|
return os.path.join(self.gitdir, path)
|
||||||
|
Loading…
Reference in New Issue
Block a user