diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-21 10:50:33 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-21 10:54:59 -0700 |
commit | 9360966bd2ff68fd7257b50df1a7fcb5e62fe189 (patch) | |
tree | d9e7183ddde5e647ae2a417b278e7c1e90a5379c | |
parent | ef9ce1d0a556211687cec6a782de366407255f41 (diff) | |
download | git-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>
-rw-r--r-- | project.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |