changeset 4302:916be70ff883

helpers: urlify_commit requires a repo - it might crash without
author Mads Kiilerich <madski@unity3d.com>
date Tue, 10 Dec 2013 19:30:37 +0100
parents 5095f484f74c
children 4b7a790d9702
files kallithea/lib/helpers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/helpers.py	Tue Dec 10 19:30:37 2013 +0100
+++ b/kallithea/lib/helpers.py	Tue Dec 10 19:30:37 2013 +0100
@@ -1268,7 +1268,7 @@
     return newtext
 
 
-def urlify_commit(text_, repository=None, link_=None):
+def urlify_commit(text_, repository, link_=None):
     """
     Parses given text message and makes proper links.
     issues are linked to given issue-server, and rest is a changeset link
@@ -1295,7 +1295,7 @@
 
         return ''.join(links)
 
-    # urlify changesets - extrac revisions and make link out of them
+    # urlify changesets - extract revisions and make link out of them
     newtext = urlify_changesets(escaper(text_), repository)
 
     # extract http/https links and make them real urls