1
0
Fork 0

info: Fix seperator when superproject revision is "None"

Not seen when using sp.commit_id since it has a trailing newline,
so modify def commit_id to strip the stdout and append a newline
for both using the helper.

Manifest groups: default,platform-linux
Superproject revision: None----------------------------

->

Manifest groups: default,platform-linux
Superproject revision: None
----------------------------

Test: repo info -o with and without superproject
Change-Id: I06ad4dd1f7b64b5374c343e583c8a2690dc9c6e7
This commit is contained in:
Alexander Koskovich 2025-06-16 23:19:38 -04:00
parent 80d1a5ad3e
commit cfa2ea4423
2 changed files with 2 additions and 1 deletions

View file

@ -151,7 +151,7 @@ class Superproject:
p.stderr,
)
return None
return p.stdout
return p.stdout.strip()
@property
def project_commit_ids(self):

View file

@ -106,6 +106,7 @@ class Info(PagedCommand):
srev = sp.commit_id if sp and sp.commit_id else "None"
self.heading("Superproject revision: ")
self.headtext(srev)
self.out.nl()
self.printSeparator()