summaryrefslogtreecommitdiff
path: root/app/models/project_wiki.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-28 10:42:59 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-06-28 10:42:59 -0300
commit26f3731021e8c5c6417fe874c53a5bf2065b8888 (patch)
tree3b95b3573af0680b8f35a7c6b5ce9f50c2f3b731 /app/models/project_wiki.rb
parent2a64607b987add8747c4b9601aa01fe40064d15d (diff)
downloadgitlab-ce-26f3731021e8c5c6417fe874c53a5bf2065b8888.tar.gz
Add ProjectWiki#ensure_repositoryport-changes-ee-2467
Diffstat (limited to 'app/models/project_wiki.rb')
-rw-r--r--app/models/project_wiki.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb
index f38fbda7839..f26ee57510c 100644
--- a/app/models/project_wiki.rb
+++ b/app/models/project_wiki.rb
@@ -149,6 +149,10 @@ class ProjectWiki
wiki
end
+ def ensure_repository
+ create_repo! unless repository_exists?
+ end
+
def hook_attrs
{
web_url: web_url,