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
|
@ -2,7 +2,7 @@ namespace :gitlab do
|
|||
namespace :gitolite do
|
||||
desc "GITLAB | Write GITLAB hook for gitolite"
|
||||
task :write_hooks => :environment do
|
||||
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_hooks_path = Rails.root.join("lib", "hooks")
|
||||
|
||||
gitlab_hook_files = ['post-receive']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue