repo info -o deletes spaces from commit messages
Closed this issue · 4 comments
GoogleCodeExporter commented
Affected Version: v1.12.0
Environment: Mac OS X
What steps will reproduce the problem?
1. 'repo info -o' with at least one outstanding change in the repo
What is the expected output? What do you see instead?
Expected: Spaces in commit message (e.g. "c902d4cb Useful debug options")
Seen: No spaces in commit message (e.g. "c902d4cb Usefuldebugoptions")
Please provide any additional information below.
Trivial patch:
diff --git a/subcmds/info.py b/subcmds/info.py
index 3a25e3b..0960dfe 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -188,8 +188,8 @@ class Info(PagedCommand):
self.out.nl()
for commit in commits:
- split = commit.split()
+ split = commit.split(None, 1)
self.text('{0:38}{1} '.format('','-'))
self.sha(split[0] + " ")
- self.text("".join(split[1:]))
+ self.text(split[1])
self.out.nl()
Original issue reported on code.google.com by nneon...@gmail.com
on 25 Jan 2013 at 6:11
GoogleCodeExporter commented
Please check if this was fixed by:
https://gerrit-review.googlesource.com/#/c/39771/
Original comment by david.pu...@sonymobile.com
on 1 Feb 2013 at 2:15
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
Looks like that should fix it. You can close this issue.
Original comment by nneon...@gmail.com
on 1 Feb 2013 at 2:23
GoogleCodeExporter commented
Original comment by david.pu...@sonymobile.com
on 14 Feb 2013 at 7:54
- Changed state: Fixed