Thanks, I saw you released the 2.0.0.
However I'm facing a problem, I use:
FROM jonashaag/klaus:2.0.0
CMD uwsgi --plugin python --protocol http --socket 0.0.0.0:80 -w klaus.contrib.wsgi_autoreload
Whenever I open any repository, I get a 500 with the following log:
fatal: detected dubious ownership in repository at '/repos/reponame'
To add an exception for this directory, call:
git config --global --add safe.directory /repos/reponame
[2022-08-21 09:03:41,518] ERROR in app: Exception on /reponame/ [GET]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/lib/python3.10/site-packages/flask/views.py", line 84, in view
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/klaus/views.py", line 167, in dispatch_request
self.make_template_context(repo, namespace, rev, path.strip("/"))
File "/usr/lib/python3.10/site-packages/klaus/views.py", line 330, in make_template_context
history = self.context["repo"].history(
File "/usr/lib/python3.10/site-packages/klaus/repo.py", line 205, in history
output = subprocess.check_output(cmd, cwd=os.path.abspath(self.path))
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'log', '--format=%H', '--max-count=11', '49070ad25e4fc6251e3c631b79dc63ea3c5cb0de']' returned non-zero exit status 128.
Should I open an issue?