at 16.09-beta 13 lines 549 B view raw
1diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb 2index c1d175a..7f7fd2f 100644 3--- a/lib/gitlab_projects.rb 4+++ b/lib/gitlab_projects.rb 5@@ -5,7 +5,7 @@ require_relative 'gitlab_config' 6 require_relative 'gitlab_logger' 7 8 class GitlabProjects 9- GLOBAL_HOOKS_DIRECTORY = File.join(ROOT_PATH, 'hooks') 10+ GLOBAL_HOOKS_DIRECTORY = ENV['GITLAB_SHELL_HOOKS_PATH'] || File.join(ROOT_PATH, 'hooks') 11 12 # Project name is a directory name for repository with .git at the end 13 # It may be namespaced or not. Like repo.git or gitlab/repo.git