diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-06 17:39:31 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-06 17:39:31 +0200 |
commit | 9a407166fb5ec31e4bee70d165bb345ee9e06a6b (patch) | |
tree | 8ff4249b2978dca1fbe0fa45a4fdc185a48cb85b /lib/gitlab_shell.rb | |
parent | 96454ac5894b97bd9d94877524c77efa5d82fa14 (diff) | |
download | gitlab-shell-9a407166fb5ec31e4bee70d165bb345ee9e06a6b.tar.gz |
Update hook and support for protected branches
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 9167bac..4da97c7 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -49,9 +49,7 @@ class GitlabShell end def validate_access - @ref_name = 'master' # just hardcode it cause we dont know ref - - api.allowed?(@git_cmd, @repo_name, @key_id, @ref_name) + api.allowed?(@git_cmd, @repo_name, @key_id, '_any') end def api |