import threading
from wsgiref import simple_server
+from dulwich.server import (
+ DictBackend,
+ )
from dulwich.web import (
HTTPGitApplication,
)
protocol = 'http'
def _start_server(self, repo):
- app = self._make_app(repo)
+ backend = DictBackend({'/': repo})
+ app = self._make_app(backend)
dul_server = simple_server.make_server('localhost', 0, app,
server_class=WSGIServer)
threading.Thread(target=dul_server.serve_forever).start()