summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index a32eaae0..103a78d6 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -20,6 +20,7 @@ from color import Coloring
20from command import InteractiveCommand, MirrorSafeCommand 20from command import InteractiveCommand, MirrorSafeCommand
21from error import ManifestParseError 21from error import ManifestParseError
22from remote import Remote 22from remote import Remote
23from project import SyncBuffer
23from git_command import git, MIN_GIT_VERSION 24from git_command import git, MIN_GIT_VERSION
24 25
25class Init(InteractiveCommand, MirrorSafeCommand): 26class Init(InteractiveCommand, MirrorSafeCommand):
@@ -129,7 +130,10 @@ default.xml will be used.
129 print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url 130 print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url
130 sys.exit(1) 131 sys.exit(1)
131 132
132 m.Sync_LocalHalf() 133 syncbuf = SyncBuffer(m.config)
134 m.Sync_LocalHalf(syncbuf)
135 syncbuf.Finish()
136
133 if is_new or m.CurrentBranch is None: 137 if is_new or m.CurrentBranch is None:
134 if not m.StartBranch('default'): 138 if not m.StartBranch('default'):
135 print >>sys.stderr, 'fatal: cannot create default in manifest' 139 print >>sys.stderr, 'fatal: cannot create default in manifest'