Really fix #43: Forgot to include the actual fix. NEED TESTS.
Jonas Haag
9 years ago
7 | 7 | from dulwich.errors import NotGitRepository |
8 | 8 | from dulwich.repo import Repo |
9 | 9 | |
10 | import klaus | |
10 | from klaus import make_app | |
11 | from klaus.utils import force_unicode | |
11 | 12 | |
12 | 13 | |
13 | 14 | def git_repository(path): |
51 | 52 | if not args.site_name: |
52 | 53 | args.site_name = '%s:%d' % (args.host, args.port) |
53 | 54 | |
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 | ) | |
58 | 61 | |
59 | 62 | app.run(args.host, args.port, args.debug) |
60 | 63 |