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:
parent
80d1a5ad3e
commit
cfa2ea4423
2 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Superproject:
|
||||||
p.stderr,
|
p.stderr,
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
return p.stdout
|
return p.stdout.strip()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def project_commit_ids(self):
|
def project_commit_ids(self):
|
||||||
|
|
|
@ -106,6 +106,7 @@ class Info(PagedCommand):
|
||||||
srev = sp.commit_id if sp and sp.commit_id else "None"
|
srev = sp.commit_id if sp and sp.commit_id else "None"
|
||||||
self.heading("Superproject revision: ")
|
self.heading("Superproject revision: ")
|
||||||
self.headtext(srev)
|
self.headtext(srev)
|
||||||
|
self.out.nl()
|
||||||
|
|
||||||
self.printSeparator()
|
self.printSeparator()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue