mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
project: clean up error message
Superproject update failures on single-manifest checkouts had an extra space. Bug: b/254523816 Change-Id: I6f71e42337e324a6975c5d6bba487f83abaf054f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/357056 Tested-by: LaMont Jones <lamontjones@google.com> Reviewed-by: Xin Li <delphij@google.com>
This commit is contained in:
parent
2aa5d32d70
commit
7f44d366d0
14
project.py
14
project.py
@ -3932,12 +3932,14 @@ class ManifestProject(MetaProject):
|
||||
if git_superproject.UseSuperproject(use_superproject, self.manifest):
|
||||
sync_result = self.manifest.superproject.Sync(git_event_log)
|
||||
if not sync_result.success:
|
||||
print('warning: git update of superproject for '
|
||||
f'{self.manifest.path_prefix} failed, repo sync will not use '
|
||||
'superproject to fetch source; while this error is not fatal, '
|
||||
'and you can continue to run repo sync, please run repo init '
|
||||
'with the --no-use-superproject option to stop seeing this '
|
||||
'warning', file=sys.stderr)
|
||||
submanifest = ''
|
||||
if self.manifest.path_prefix:
|
||||
submanifest = f'for {self.manifest.path_prefix} '
|
||||
print(f'warning: git update of superproject {submanifest}failed, repo '
|
||||
'sync will not use superproject to fetch source; while this '
|
||||
'error is not fatal, and you can continue to run repo sync, '
|
||||
'please run repo init with the --no-use-superproject option to '
|
||||
'stop seeing this warning', file=sys.stderr)
|
||||
if sync_result.fatal and use_superproject is not None:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user