comparison 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
comparison
equal deleted inserted replaced
6004:c9f97be1927e 6005:81ff11476d16
225 """ 225 """
226 226
227 from kallithea.lib.middleware.pygrack import make_wsgi_app 227 from kallithea.lib.middleware.pygrack import make_wsgi_app
228 app = make_wsgi_app( 228 app = make_wsgi_app(
229 repo_root=safe_str(self.basepath), 229 repo_root=safe_str(self.basepath),
230 repo_name=repo_name, 230 repo_name=safe_unicode(repo_name),
231 extras=extras, 231 extras=extras,
232 ) 232 )
233 return app 233 return app
234 234
235 def __get_repository(self, environ): 235 def __get_repository(self, environ):