diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-16 14:23:10 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-18 21:49:20 +0100 |
commit | c240cad59a84e090e12d7ce6db94983405aa1813 (patch) | |
tree | 98a2d16823ad0d5dda3d64466155b12697eb8fa4 /app/controllers/projects_controller.rb | |
parent | 68c9981013b1aa87dde7421ffe5db0a342d55ee8 (diff) | |
download | gitlab-ce-c240cad59a84e090e12d7ce6db94983405aa1813.tar.gz |
Fixed Ruby to use exclude
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index e2311971f70..b65730b37c9 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -262,7 +262,7 @@ class ProjectsController < Projects::ApplicationController # If reference is commit id - we should add it to branch/tag selectbox ref = params[:ref] - if ref && !options.flatten.include?(ref) && ref =~ /\A[0-9a-zA-Z]{6,52}\z/ + if ref && options.flatten.exclude?(ref) && ref =~ /\A[0-9a-zA-Z]{6,52}\z/ options['Commits'] = [ref] end |