diff options
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 536e367c..5671fc24 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -100,8 +100,12 @@ to update the working directory files. | |||
100 | quiet=opt.quiet) | 100 | quiet=opt.quiet) |
101 | sync_result = superproject.Sync() | 101 | sync_result = superproject.Sync() |
102 | if not sync_result.success: | 102 | if not sync_result.success: |
103 | print('error: git update of superproject failed', file=sys.stderr) | 103 | print('warning: git update of superproject failed, repo sync will not ' |
104 | if sync_result.fatal: | 104 | 'use superproject to fetch source; while this error is not fatal, ' |
105 | 'and you can continue to run repo sync, please run repo init with ' | ||
106 | 'the --no-use-superproject option to stop seeing this warning', | ||
107 | file=sys.stderr) | ||
108 | if sync_result.fatal and opt.use_superproject is not None: | ||
105 | sys.exit(1) | 109 | sys.exit(1) |
106 | 110 | ||
107 | def _SyncManifest(self, opt): | 111 | def _SyncManifest(self, opt): |