fix deleting non-existing repo
This commit is contained in:
parent
c78ede3165
commit
d14069e333
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue