Skip to content
Snippets Groups Projects
Commit d14069e3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

fix deleting non-existing repo

parent c78ede31
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -87,7 +87,9 @@ module Gitlab
end
 
def destroy_project(project)
FileUtils.rm_rf(project.repository.path_to_repo)
if project.repository
FileUtils.rm_rf(project.repository.path_to_repo)
end
conf.rm_repo(project.path_with_namespace)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment