From d1151f762169e48e14b2007cf7990bee0f17e01f Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Tue, 28 Jun 2016 10:18:58 -0500 Subject: Don't allow empty strings in the `protocol` check. --- lib/gitlab/git_access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 7dd9594ce68..ae609021eb6 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -50,7 +50,7 @@ module Gitlab end 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? -- cgit v1.2.1