summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-12-30 18:38:27 -0800
committerShawn O. Pearce <sop@google.com>2009-12-30 18:38:27 -0800
commitaa4982e4c937d9be0f69c250692839eb98a184e8 (patch)
tree5a86ac62a56f93e8ad3a784686a53e333ebadac3 /project.py
parent9bb1816bdc2c21811ea6a87ba6eb745bdf3c041c (diff)
downloadgit-repo-aa4982e4c937d9be0f69c250692839eb98a184e8.tar.gz
sync: Fix split call on malformed email addressesv1.6.8.9
If an email address in a commit object contains a space, like a few malformed ones on the Linux kernel, we still want to split only on the first space. Unfortunately my brain was too damaged by Perl and originally wrote the split asking for 2 results; in Python split's argument is how many splits to perform. Here we want only 1 split, to break apart the commit identity from the email address on the same line. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index 1beee2a6..4930a275 100644
--- a/project.py
+++ b/project.py
@@ -728,7 +728,7 @@ class Project(object):
728 last_mine = None 728 last_mine = None
729 cnt_mine = 0 729 cnt_mine = 0
730 for commit in local_changes: 730 for commit in local_changes:
731 commit_id, committer_email = commit.split(' ', 2) 731 commit_id, committer_email = commit.split(' ', 1)
732 if committer_email == self.UserEmail: 732 if committer_email == self.UserEmail:
733 last_mine = commit_id 733 last_mine = commit_id
734 cnt_mine += 1 734 cnt_mine += 1