diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 53c3a010..b5207fbf 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -22,6 +22,7 @@ from error import ManifestParseError | |||
22 | from project import SyncBuffer | 22 | from project import SyncBuffer |
23 | from git_command import git_require, MIN_GIT_VERSION | 23 | from git_command import git_require, MIN_GIT_VERSION |
24 | from manifest_xml import XmlManifest | 24 | from manifest_xml import XmlManifest |
25 | from subcmds.sync import _ReloadManifest | ||
25 | 26 | ||
26 | class Init(InteractiveCommand, MirrorSafeCommand): | 27 | class Init(InteractiveCommand, MirrorSafeCommand): |
27 | common = True | 28 | common = True |
@@ -143,9 +144,17 @@ to update the working directory files. | |||
143 | print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url | 144 | print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url |
144 | sys.exit(1) | 145 | sys.exit(1) |
145 | 146 | ||
147 | if not is_new: | ||
148 | # Force the manifest to load if it exists, the old graph | ||
149 | # may be needed inside of _ReloadManifest(). | ||
150 | # | ||
151 | self.manifest.projects | ||
152 | |||
146 | syncbuf = SyncBuffer(m.config) | 153 | syncbuf = SyncBuffer(m.config) |
147 | m.Sync_LocalHalf(syncbuf) | 154 | m.Sync_LocalHalf(syncbuf) |
148 | syncbuf.Finish() | 155 | syncbuf.Finish() |
156 | _ReloadManifest(self) | ||
157 | self._ApplyOptions(opt, is_new) | ||
149 | 158 | ||
150 | if not self.manifest.InitBranch(): | 159 | if not self.manifest.InitBranch(): |
151 | print >>sys.stderr, 'fatal: cannot create branch in manifest' | 160 | print >>sys.stderr, 'fatal: cannot create branch in manifest' |