diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/init.py | 8 | ||||
| -rw-r--r-- | subcmds/sync.py | 7 |
2 files changed, 10 insertions, 5 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): |
diff --git a/subcmds/sync.py b/subcmds/sync.py index bd5ffd0c..e6dbf1c8 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -309,10 +309,11 @@ later is required to fix a server side protocol bug. | |||
| 309 | if manifest_path: | 309 | if manifest_path: |
| 310 | self._ReloadManifest(manifest_path, load_local_manifests) | 310 | self._ReloadManifest(manifest_path, load_local_manifests) |
| 311 | else: | 311 | else: |
| 312 | print('error: Update of revsionId from superproject has failed. ' | 312 | print('warning: Update of revisionId from superproject has failed, ' |
| 313 | 'Please resync with --no-use-superproject option', | 313 | 'repo sync will not use superproject to fetch the source. ', |
| 314 | 'Please resync with the --no-use-superproject option to avoid this repo warning.', | ||
| 314 | file=sys.stderr) | 315 | file=sys.stderr) |
| 315 | if update_result.fatal: | 316 | if update_result.fatal and opt.use_superproject is not None: |
| 316 | sys.exit(1) | 317 | sys.exit(1) |
| 317 | return manifest_path | 318 | return manifest_path |
| 318 | 319 | ||
