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
4 merge requests!3050Fix RESTfulness of project hook deletions by API,!3014Fix 4.1 Installation Doc wording,!2983Fixed typo in gitlab.yml.example,!2765Added methods to protect and unprotect branches in from the API
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