Recreate repo on clean

This commit is contained in:
Alexey Berezhok
2025-12-23 23:57:23 +03:00
parent 5e59ea319f
commit bacea404e2
2 changed files with 9 additions and 1 deletions

View File

@@ -467,4 +467,11 @@ class ProjectsActions
path = get_project_path(id)
File.join(path, PROJECTS_STRUCTURE[:SIGNED])
end
def recreate_repo(id)
proj_path = get_project_path(id)
repo_path = File.join(proj_path, PROJECTS_STRUCTURE[:REPO])
repoman = RepoManager.new(repo_path)
repoman.create_repo
end
end