Merge pull request #1313 from LeonB/master

Fixed some hardcoded paths based on issue #1272
This commit is contained in:
Dmitriy Zaporozhets 2012-08-28 07:00:55 -07:00
commit aded7056fd
5 changed files with 8 additions and 3 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)