summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-25 21:24:18 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-25 21:24:18 +0100
commit7c87fa6c77279b91e272219a52e4f50780a7186f (patch)
treec73351d0d3f02fb1daf1bc600fcb480d0616ce97
parent9e24a4a7a91cab92237e511b8cfd7664473b979a (diff)
Convert unicode to string at end of repo_commit_msg().
-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):