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>2020-01-10 06:07:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 06:07:46 +0300
commitb24ae1cbc66e5b0f622393bcf2c59711750161ea (patch)
treede9514fdda81f7d8293612687026a87826b0d9dd /app/helpers/search_helper.rb
parent775816e676aae53509d7b6f364945f2720636f72 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index a89fea4b7b8..9a5c5f274a0 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -143,7 +143,7 @@ module SearchHelper
# Autocomplete results for the current project, if it's defined
def project_autocomplete
- if @project && @project.repository.exists? && @project.repository.root_ref
+ if @project && @project.repository.root_ref
ref = @ref || @project.repository.root_ref
[