summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/init.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 9c6b2ad9..53c6ba04 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -166,12 +166,14 @@ to update the working directory files.
166 standalone_manifest = False 166 standalone_manifest = False
167 if opt.standalone_manifest: 167 if opt.standalone_manifest:
168 standalone_manifest = True 168 standalone_manifest = True
169 elif not opt.manifest_url: 169 m.config.SetString('manifest.standalone', opt.manifest_url)
170 elif not opt.manifest_url and not opt.manifest_branch:
170 # If -u is set and --standalone-manifest is not, then we're not in 171 # If -u is set and --standalone-manifest is not, then we're not in
171 # standalone mode. Otherwise, use config to infer what we were in the last 172 # standalone mode. Otherwise, use config to infer what we were in the last
172 # init. 173 # init.
173 standalone_manifest = bool(m.config.GetString('manifest.standalone')) 174 standalone_manifest = bool(m.config.GetString('manifest.standalone'))
174 m.config.SetString('manifest.standalone', opt.manifest_url) 175 if not standalone_manifest:
176 m.config.SetString('manifest.standalone', None)
175 177
176 self._ConfigureDepth(opt) 178 self._ConfigureDepth(opt)
177 179