diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 6 |
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 | |||
20 | from command import InteractiveCommand, MirrorSafeCommand | 20 | from command import InteractiveCommand, MirrorSafeCommand |
21 | from error import ManifestParseError | 21 | from error import ManifestParseError |
22 | from remote import Remote | 22 | from remote import Remote |
23 | from project import SyncBuffer | ||
23 | from git_command import git, MIN_GIT_VERSION | 24 | from git_command import git, MIN_GIT_VERSION |
24 | 25 | ||
25 | class Init(InteractiveCommand, MirrorSafeCommand): | 26 | class 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' |