aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cgitize/cgit.py2
-rw-r--r--examples/cgitize.toml6
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