hadi-guang / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

repo info -o deletes spaces from commit messages #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 8 years ago
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 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 8 years ago

Original comment by david.pu...@sonymobile.com on 14 Feb 2013 at 7:54