Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-12 21:08:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-12 21:08:59 +0300
commit6d533fe8b44007d82b8de29a4b706da69e5f5936 (patch)
treef02d924a3b8f81ca28852c993831fcf596417f1b /app/models/wiki.rb
parentf44248b613e94534fd6a1b1f8fb6df179f1bbf56 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r--app/models/wiki.rb2
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?