提交 2812e6f1 编写于 作者: D Dmitriy Zaporozhets

Fix removeing project if repo not exists

上级 20a4742e
...@@ -88,7 +88,10 @@ module Gitlab ...@@ -88,7 +88,10 @@ module Gitlab
end end
def destroy_project(project) def destroy_project(project)
FileUtils.rm_rf(project.repository.path_to_repo) # do rm-rf only if repository exists
if project.repository
FileUtils.rm_rf(project.repository.path_to_repo)
end
conf.rm_repo(project.path_with_namespace) conf.rm_repo(project.path_with_namespace)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册