summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-08 11:38:19 +0100
committerPhil Hughes <me@iamphill.com>2016-06-18 21:49:20 +0100
commitd2362e2edf2b23318c6913535fe0ec3ea122d57e (patch)
treeb5a2b7654a0639c6daaecc55b946b72f75afc8f3 /app/controllers/projects_controller.rb
parentdeca5ef200a0b6d5d965214ad71d13e359b03e77 (diff)
downloadgitlab-ce-d2362e2edf2b23318c6913535fe0ec3ea122d57e.tar.gz
Tests fix for ref switcher
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 0391d4a2442..aaa4e49eb42 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -261,7 +261,7 @@ class ProjectsController < Projects::ApplicationController
# If reference is commit id - we should add it to branch/tag selectbox
if @ref && !options.flatten.include?(@ref) && @ref =~ /\A[0-9a-zA-Z]{6,52}\z/
- options << {'Commits' => @ref}
+ options << { 'Commits' => @ref }
end
render json: options.to_json