diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-02-27 10:58:21 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-02-27 10:58:21 +0000 |
commit | 078f11a6b9c0197a3cfde6b3658ca268097e315c (patch) | |
tree | a2253cf873eb585e2a2812ff584cd2e748ed6e02 /lib/gitlab/shell.rb | |
parent | 1b10b77babf008daf337ff194f10508935a8c8a2 (diff) | |
download | gitlab-ce-078f11a6b9c0197a3cfde6b3658ca268097e315c.tar.gz |
Prepare test suite for switch to Gitaly-embedded Git hooks
Diffstat (limited to 'lib/gitlab/shell.rb')
-rw-r--r-- | lib/gitlab/shell.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb index c7d8dfcd495..40b641b8317 100644 --- a/lib/gitlab/shell.rb +++ b/lib/gitlab/shell.rb @@ -340,16 +340,16 @@ module Gitlab end # rubocop: enable CodeReuse/ActiveRecord + def hooks_path + File.join(gitlab_shell_path, 'hooks') + end + protected def gitlab_shell_path File.expand_path(Gitlab.config.gitlab_shell.path) end - def gitlab_shell_hooks_path - File.expand_path(Gitlab.config.gitlab_shell.hooks_path) - end - def gitlab_shell_user_home File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}") end |