Fixed some hardcoded paths

New config option: git_hooks_path
This commit is contained in:
LeonB 2012-08-28 10:57:23 +02:00
parent 04b2864b64
commit c81d4ab4a9
4 changed files with 7 additions and 2 deletions

View file

@ -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)