diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-02 11:10:53 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-02 11:10:53 +0300 |
commit | 2463848086e1203dfdb86bcf7300b74c84145085 (patch) | |
tree | 64cc4b5a092b0b28a6890c8fa25584ba98bfde5b | |
parent | v2.1.0 (diff) | |
download | cgitize-2463848086e1203dfdb86bcf7300b74c84145085.tar.gz cgitize-2463848086e1203dfdb86bcf7300b74c84145085.zip |
"clone_url": fix nested repository directory
-rw-r--r-- | cgitize/cgit.py | 2 | ||||
-rw-r--r-- | examples/cgitize.toml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cgitize/cgit.py b/cgitize/cgit.py index 7f07876..3dce468 100644 --- a/cgitize/cgit.py +++ b/cgitize/cgit.py @@ -18,7 +18,7 @@ class CGitServer: def get_clone_url(self, repo): if self.clone_url is None: return None - return self.clone_url.format(name=repo.name) + return self.clone_url.format(repo=repo.dir) class CGitRCWriter: diff --git a/examples/cgitize.toml b/examples/cgitize.toml index 22ace41..93d4c1d 100644 --- a/examples/cgitize.toml +++ b/examples/cgitize.toml @@ -3,9 +3,9 @@ # /var/tmp/cgitize by default. output_dir = "/tmp/cgitize" -# URL to clone from the output directory. {name} is replaced by the repository -# name. -clone_url = "https://yourhost.com/git/{name}" +# URL to clone from the output directory. {repo} is replaced by the +# repository's directory path. +clone_url = "https://yourhost.com/git/{repo}" # Clones via SSH by default. clone_via_ssh = false |