summaryrefslogtreecommitdiff
path: root/gitnoti.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitnoti.py')
-rwxr-xr-xgitnoti.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitnoti.py b/gitnoti.py
index 9c9cbd8..528f42b 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -85,9 +85,9 @@ def repo_commit_msg(repo, branch, commits):
reponame,
('/'+branch) if branch else '',
commit.hexsha[:7],
- commit.committer.name if commit.author.name == commit.committer.name else '%s/%s' % (commit.committer.name, commit.author.name),
+ commit.committer.name if commit.author.name.encode('utf8') == commit.committer.name else '%s/%s' % (commit.committer.name, commit.author.name.encode('utf8')),
stat,
- commit.summary
+ commit.summary.encode('utf8')
)
if options.url:
@@ -103,10 +103,10 @@ def repo_commit_msg(repo, branch, commits):
short_url = None
if short_url:
- url = short_url
+ url = short_url.encode('utf-8')
msg += url
- return msg.encode('utf-8')
+ return msg
class ReposNotifyEvent(pyinotify.ProcessEvent):
def new_repo(self, event):