summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index ec87d036..0075b0b4 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -130,10 +130,9 @@ to update the working directory files.
130 m.Sync_LocalHalf(syncbuf) 130 m.Sync_LocalHalf(syncbuf)
131 syncbuf.Finish() 131 syncbuf.Finish()
132 132
133 if is_new or m.CurrentBranch is None: 133 if not self.manifest.InitBranch():
134 if not m.StartBranch('default'): 134 print >>sys.stderr, 'fatal: cannot create branch in manifest'
135 print >>sys.stderr, 'fatal: cannot create default in manifest' 135 sys.exit(1)
136 sys.exit(1)
137 136
138 def _LinkManifest(self, name): 137 def _LinkManifest(self, name):
139 if not name: 138 if not name: