Commit d1151f76 authored by Patricio Cano's avatar Patricio Cano

Don't allow empty strings in the `protocol` check.

parent 9397ce91
...@@ -50,7 +50,7 @@ module Gitlab ...@@ -50,7 +50,7 @@ module Gitlab
end end
def check(cmd, changes = nil) def check(cmd, changes = nil)
raise 'Access denied due to unspecified Git access protocol' unless protocol raise 'Access denied due to unspecified Git access protocol' unless protocol.present?
return build_status_object(false, "Git access over #{protocol.upcase} is not allowed") unless protocol_allowed? return build_status_object(false, "Git access over #{protocol.upcase} is not allowed") unless protocol_allowed?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment