Recreate repo on clean
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user