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

@ -66,6 +66,10 @@ class Settings < Settingslogic
git_host['base_path'] || '/home/git/repositories/'
end
def git_hooks_path
git_host['hooks_path'] || '/home/git/share/gitolite/hooks/'
end
def git_upload_pack
if git_host['upload_pack'] != false
true