summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitnoti.py b/gitnoti.py
index 3324c21..9c9cbd8 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -103,10 +103,10 @@ def repo_commit_msg(repo, branch, commits):
short_url = None
if short_url:
- url = short_url.encode('utf-8')
+ url = short_url
msg += url
- return msg
+ return msg.encode('utf-8')
class ReposNotifyEvent(pyinotify.ProcessEvent):
def new_repo(self, event):