From f5a529dfdc898e6a326f692ea5fee2bccc0bf14c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 27 Mar 2021 03:30:47 +0300 Subject: cgit-repos.conf: path to output might be relative --- cgit/repos/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgit') diff --git a/cgit/repos/main.py b/cgit/repos/main.py index c8af42f..bc8fa72 100644 --- a/cgit/repos/main.py +++ b/cgit/repos/main.py @@ -66,7 +66,8 @@ class Config: @property def output(self): - return self.impl.get('DEFAULT', 'output', fallback=DEFAULT_OUTPUT_DIR) + path = self.impl.get('DEFAULT', 'output', fallback=DEFAULT_OUTPUT_DIR) + return self._resolve_relative(path) @property def clone_url(self): -- cgit v1.2.3