diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 21:08:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 21:08:59 +0300 |
commit | 6d533fe8b44007d82b8de29a4b706da69e5f5936 (patch) | |
tree | f02d924a3b8f81ca28852c993831fcf596417f1b /app/models/wiki.rb | |
parent | f44248b613e94534fd6a1b1f8fb6df179f1bbf56 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index ab53515ec48..45747c0b03c 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -104,7 +104,7 @@ class Wiki end def empty? - list_pages(limit: 1).empty? + !repository_exists? || list_pages(limit: 1).empty? end def exists? |