diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-28 10:18:58 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-05 16:54:22 -0500 |
commit | d1151f762169e48e14b2007cf7990bee0f17e01f (patch) | |
tree | 36718e9b50cbcddd40a2df282d60847f9f0debe6 /lib | |
parent | 9397ce9137a8784bff4b63acfce3d4bc1e123cdf (diff) | |
download | gitlab-ce-d1151f762169e48e14b2007cf7990bee0f17e01f.tar.gz |
Don't allow empty strings in the `protocol` check.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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? |