diff options
-rwxr-xr-x | gitnoti.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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): |