Commit 0b6a487e authored by Georges Racinet's avatar Georges Racinet 🌳
Browse files

wiki backups: avoid showing of main project config

Because `disk_path` doesn't have the `.git` extension,
the removed `.ext()` would have been called on paths such
as ``, returning `my_project.hg` instead of
the expected ``.

branch : heptapod
parent c4c068132cc9
......@@ -236,7 +236,7 @@ def custom_hooks_tar(project)
def path_to_hg_tars(project, dir = nil)
path = File.join(backup_repos_path, project.disk_path.ext('.hg'))
path = File.join(backup_repos_path, project.disk_path + '.hg')
if dir
File.join(path, "#{dir}.tar")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment