diff kallithea/lib/middleware/simplegit.py @ 6005:81ff11476d16

git: make sure repository path and name are Unicode strings This is needed for supporting latest Dulwich version, but it also works with out supported version.
author Andrew Shadura <andrew@shadura.me>
date Tue, 12 Jul 2016 21:47:14 +0200
parents b99e00fb6dd4
children a89be5fb75d2
line wrap: on
line diff
--- a/kallithea/lib/middleware/simplegit.py	Tue Jul 12 21:47:14 2016 +0200
+++ b/kallithea/lib/middleware/simplegit.py	Tue Jul 12 21:47:14 2016 +0200
@@ -227,7 +227,7 @@
         from kallithea.lib.middleware.pygrack import make_wsgi_app
         app = make_wsgi_app(
             repo_root=safe_str(self.basepath),
-            repo_name=repo_name,
+            repo_name=safe_unicode(repo_name),
             extras=extras,
         )
         return app