summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-21 10:50:33 -0700
committerShawn O. Pearce <sop@google.com>2009-04-21 10:54:59 -0700
commit9360966bd2ff68fd7257b50df1a7fcb5e62fe189 (patch)
treed9e7183ddde5e647ae2a417b278e7c1e90a5379c /project.py
parentef9ce1d0a556211687cec6a782de366407255f41 (diff)
downloadgit-repo-9360966bd2ff68fd7257b50df1a7fcb5e62fe189.tar.gz
Perform copy file activity when creating a new work directoryv1.6.7.1
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>
Diffstat (limited to 'project.py')
-rw-r--r--project.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/project.py b/project.py
index adb72b27..a698b316 100644
--- a/project.py
+++ b/project.py
@@ -1137,6 +1137,7 @@ class Project(object):
1137 cmd.append('HEAD') 1137 cmd.append('HEAD')
1138 if GitCommand(self, cmd).Wait() != 0: 1138 if GitCommand(self, cmd).Wait() != 0:
1139 raise GitError("cannot initialize work tree") 1139 raise GitError("cannot initialize work tree")
1140 self._CopyFiles()
1140 1141
1141 def _gitdir_path(self, path): 1142 def _gitdir_path(self, path):
1142 return os.path.join(self.gitdir, path) 1143 return os.path.join(self.gitdir, path)