Commit da208269 authored by Kerri Miller's avatar Kerri Miller

Merge branch 'master' into 'master'

use create_wiki method on ensure_wiki_exists in update_service

See merge request gitlab-org/gitlab!42910
parents 75fe1f08 6c435314
......@@ -135,8 +135,8 @@ module Projects
end
def ensure_wiki_exists
ProjectWiki.new(project, project.owner).wiki
rescue Wiki::CouldNotCreateWikiError
return if project.create_wiki
log_error("Could not create wiki for #{project.full_name}")
Gitlab::Metrics.counter(:wiki_can_not_be_created_total, 'Counts the times we failed to create a wiki').increment
end
......
---
title: use create_wiki method on ensure_wiki_exists in update_service
merge_request: 42910
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment