Fixed some hardcoded paths
New config option: git_hooks_path
This commit is contained in:
parent
04b2864b64
commit
c81d4ab4a9
4 changed files with 7 additions and 2 deletions
|
@ -56,7 +56,7 @@ namespace :gitlab do
|
|||
return
|
||||
end
|
||||
|
||||
gitolite_hooks_path = File.join("/home", Gitlab.config.ssh_user, "share", "gitolite", "hooks", "common")
|
||||
gitolite_hooks_path = File.join(Gitlab.config.git_hooks_path, "common")
|
||||
gitlab_hook_files = ['post-receive']
|
||||
gitlab_hook_files.each do |file_name|
|
||||
dest = File.join(gitolite_hooks_path, file_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue