Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/lib/gitlab/git/hook.rb')
-rw-r--r--ruby/lib/gitlab/git/hook.rb4
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