diff options
author | LaMont Jones <lamontjones@google.com> | 2023-01-31 22:13:24 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2023-02-01 23:00:47 +0000 |
commit | 7f44d366d016039c32c374db27e9956919fe2dfb (patch) | |
tree | 70647b866c302e0ee2f2ae90ede7f6d2514aa7d7 /project.py | |
parent | 2aa5d32d7086903491a455dc5fd935a9f23b2709 (diff) | |
download | git-repo-7f44d366d016039c32c374db27e9956919fe2dfb.tar.gz |
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>
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -3932,12 +3932,14 @@ class ManifestProject(MetaProject): | |||
3932 | if git_superproject.UseSuperproject(use_superproject, self.manifest): | 3932 | if git_superproject.UseSuperproject(use_superproject, self.manifest): |
3933 | sync_result = self.manifest.superproject.Sync(git_event_log) | 3933 | sync_result = self.manifest.superproject.Sync(git_event_log) |
3934 | if not sync_result.success: | 3934 | if not sync_result.success: |
3935 | print('warning: git update of superproject for ' | 3935 | submanifest = '' |
3936 | f'{self.manifest.path_prefix} failed, repo sync will not use ' | 3936 | if self.manifest.path_prefix: |
3937 | 'superproject to fetch source; while this error is not fatal, ' | 3937 | submanifest = f'for {self.manifest.path_prefix} ' |
3938 | 'and you can continue to run repo sync, please run repo init ' | 3938 | print(f'warning: git update of superproject {submanifest}failed, repo ' |
3939 | 'with the --no-use-superproject option to stop seeing this ' | 3939 | 'sync will not use superproject to fetch source; while this ' |
3940 | 'warning', file=sys.stderr) | 3940 | 'error is not fatal, and you can continue to run repo sync, ' |
3941 | 'please run repo init with the --no-use-superproject option to ' | ||
3942 | 'stop seeing this warning', file=sys.stderr) | ||
3941 | if sync_result.fatal and use_superproject is not None: | 3943 | if sync_result.fatal and use_superproject is not None: |
3942 | return False | 3944 | return False |
3943 | 3945 | ||