fix deleting non-existing repo
This commit is contained in:
parent
c78ede3165
commit
d14069e333
|
@ -87,7 +87,9 @@ module Gitlab
|
|||
end
|
||||
|
||||
def destroy_project(project)
|
||||
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