diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index c35cc82c..9214aed5 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -21,6 +21,7 @@ from color import Coloring | |||
21 | from command import InteractiveCommand, MirrorSafeCommand | 21 | from command import InteractiveCommand, MirrorSafeCommand |
22 | from error import ManifestParseError | 22 | from error import ManifestParseError |
23 | from project import SyncBuffer | 23 | from project import SyncBuffer |
24 | from git_config import GitConfig | ||
24 | from git_command import git_require, MIN_GIT_VERSION | 25 | from git_command import git_require, MIN_GIT_VERSION |
25 | 26 | ||
26 | class Init(InteractiveCommand, MirrorSafeCommand): | 27 | class Init(InteractiveCommand, MirrorSafeCommand): |
@@ -108,8 +109,8 @@ to update the working directory files. | |||
108 | sys.exit(1) | 109 | sys.exit(1) |
109 | 110 | ||
110 | if not opt.quiet: | 111 | if not opt.quiet: |
111 | print >>sys.stderr, 'Getting manifest ...' | 112 | print >>sys.stderr, 'Get %s' \ |
112 | print >>sys.stderr, ' from %s' % opt.manifest_url | 113 | % GitConfig.ForUser().UrlInsteadOf(opt.manifest_url) |
113 | m._InitGitDir() | 114 | m._InitGitDir() |
114 | 115 | ||
115 | if opt.manifest_branch: | 116 | if opt.manifest_branch: |
@@ -138,7 +139,7 @@ to update the working directory files. | |||
138 | print >>sys.stderr, 'fatal: --mirror not supported on existing client' | 139 | print >>sys.stderr, 'fatal: --mirror not supported on existing client' |
139 | sys.exit(1) | 140 | sys.exit(1) |
140 | 141 | ||
141 | if not m.Sync_NetworkHalf(): | 142 | if not m.Sync_NetworkHalf(is_new=is_new): |
142 | r = m.GetRemote(m.remote.name) | 143 | r = m.GetRemote(m.remote.name) |
143 | print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url | 144 | print >>sys.stderr, 'fatal: cannot obtain manifest %s' % r.url |
144 | 145 | ||