Klaus Demo ~jonashaag/klaus / 06eee06
Really fix #43: Forgot to include the actual fix. NEED TESTS. Jonas Haag 9 years ago
1 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
77 from dulwich.errors import NotGitRepository
88 from dulwich.repo import Repo
99
10 import klaus
10 from klaus import make_app
11 from klaus.utils import force_unicode
1112
1213
1314 def git_repository(path):
5152 if not args.site_name:
5253 args.site_name = '%s:%d' % (args.host, args.port)
5354
54 app = klaus.make_app(args.repos,
55 args.site_name or args.host,
56 args.smarthttp,
57 args.htdigest)
55 app = make_app(
56 args.repos,
57 force_unicode(args.site_name or args.host),
58 args.smarthttp,
59 args.htdigest
60 )
5861
5962 app.run(args.host, args.port, args.debug)
6063