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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue