summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2014-11-24 12:04:01 +0000
committerValery Sizov <valery@gitlab.com>2014-11-24 12:04:01 +0000
commitc5a7b76cc24e75e7024341e3cef248d7e53e2364 (patch)
tree484912f3b5b690c67080fd0b2d564c3dfb67924d /lib/gitlab_shell.rb
parentf8453da5868dd7a23d0f2f3da7a45e33c441d1db (diff)
parent961fe45c4210dcb1a69f167ac468991ad6998793 (diff)
downloadgitlab-shell-c5a7b76cc24e75e7024341e3cef248d7e53e2364.tar.gz
Merge branch 'git_messages' into 'master'
Better git hook messages DZ already merged it but we had to revert it because of lack of time to deploy to dev. See merge request !48
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r--lib/gitlab_shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index e2cb2cc..95fad9e 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -60,7 +60,7 @@ class GitlabShell
end
def validate_access
- api.allowed?(@git_cmd, @repo_name, @key_id, '_any')
+ api.check_access(@git_cmd, @repo_name, @key_id, '_any').allowed?
end
# This method is not covered by Rspec because it ends the current Ruby process.