diff options
author | YarNayar <YarTheGreat@gmail.com> | 2017-01-11 07:20:32 +0300 |
---|---|---|
committer | YarNayar <YarTheGreat@gmail.com> | 2017-01-24 14:58:00 +0300 |
commit | 99404a5851a4b8bbba8a5786d7351f2d4b024092 (patch) | |
tree | b79389d46bd60d1ba9c7ca0c87fa76e0061700c2 /lib/gitlab/search_results.rb | |
parent | dd3ddcd72bbfec3ba5bbcd871a9ac68064be7501 (diff) | |
download | gitlab-ce-99404a5851a4b8bbba8a5786d7351f2d4b024092.tar.gz |
Search feature: redirects to commit page if query is commit sha and only commit found
See !8028 and #24833
Diffstat (limited to 'lib/gitlab/search_results.rb')
-rw-r--r-- | lib/gitlab/search_results.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb index 35212992698..c9c65f76f4b 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -43,6 +43,10 @@ module Gitlab @milestones_count ||= milestones.count end + def single_commit_result? + false + end + private def projects |