diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-02-22 03:20:30 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-02-22 03:20:30 +0300 |
commit | ea18e1bf287800825f12e87cf3160e90cc2046d9 (patch) | |
tree | cfffc98c587f5f69279a9e7853a546e9490e5dfe /lib/gitlab/git_access_wiki.rb | |
parent | a5b7f27373550f0c7d3e302cc537e74e36b1a6ed (diff) |
Fix repo existence check in GitAccessWiki
Diffstat (limited to 'lib/gitlab/git_access_wiki.rb')
-rw-r--r-- | lib/gitlab/git_access_wiki.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/git_access_wiki.rb b/lib/gitlab/git_access_wiki.rb index 84d6e1490c3..a5b3902ebf4 100644 --- a/lib/gitlab/git_access_wiki.rb +++ b/lib/gitlab/git_access_wiki.rb @@ -28,5 +28,11 @@ module Gitlab def push_to_read_only_message ERROR_MESSAGES[:read_only] end + + private + + def repository + project.wiki.repository + end end end |