diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2019-03-14 20:03:02 +0300 |
---|---|---|
committer | Paul Okstad <pokstad@gitlab.com> | 2019-03-14 20:03:02 +0300 |
commit | 49c66f0eaa1410dc0ae6d6687d1ea1baecfd6aa4 (patch) | |
tree | 53087cf8b6c04f6004308ee127d94027f2e5f2c0 /ruby/lib/gitlab/git/hook.rb | |
parent | 3332ebac578e042257036dab1c96aa1463082e75 (diff) |
Revert "Revert "Merge branch 'switch-to-embedded-hooks' into 'master'""
This reverts commit 4f376cf16e64a0fa673821c0eb4a56eca9ca9419.
Diffstat (limited to 'ruby/lib/gitlab/git/hook.rb')
-rw-r--r-- | ruby/lib/gitlab/git/hook.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby/lib/gitlab/git/hook.rb b/ruby/lib/gitlab/git/hook.rb index 1b2979cc2..222c93d3b 100644 --- a/ruby/lib/gitlab/git/hook.rb +++ b/ruby/lib/gitlab/git/hook.rb @@ -7,6 +7,10 @@ module Gitlab Gitlab.config.git.hooks_directory end + def self.legacy_hooks_directory + File.join(Gitlab.config.gitlab_shell.path, 'hooks') + end + GL_PROTOCOL = 'web' attr_reader :name, :path, :repository |