fix deleting non-existing repo
This commit is contained in:
parent
c78ede3165
commit
d14069e333
|
@ -87,7 +87,9 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy_project(project)
|
def destroy_project(project)
|
||||||
|
if project.repository
|
||||||
FileUtils.rm_rf(project.repository.path_to_repo)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue