one config file, git options added

This commit is contained in:
Dmitriy Zaporozhets 2011-11-25 22:18:36 +02:00
parent 8209a2ff49
commit 367c4f42f0
6 changed files with 30 additions and 9 deletions

View file

@ -1,2 +0,0 @@
from: notify@gitlabhq.com
host: gitlabhq.com

24
config/gitlab.yml Normal file
View file

@ -0,0 +1,24 @@
# Gitlab application config file
# Email used for notification
# about new issues, comments
email:
from: notify@gitlabhq.com
host: gitlabhq.com
# Gitosis congiguration
gitosis:
admin_uri: git@localhost:gitosis-admin.git
base_path: /home/git/repositories/
host: localhost
git_user: git
# port: 22
# Git settings
# Use default values unless you understand it
git:
# Max size of git object like commit, in bytes
# This value can be increased if you have a very large commits
git_max_size: 5242880 # 5.megabytes
# Git timeout to read commit, in seconds
git_timeout: 10

View file

@ -1,5 +0,0 @@
admin_uri: git@localhost:gitosis-admin.git
base_path: /home/git/repositories/
host: localhost
git_user: git
# port: 22

View file

@ -0,0 +1,3 @@
GITOSIS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["gitosis"]
EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["email"]
GIT_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git"]

View file

@ -10,3 +10,6 @@ end
Grit::Commit.class_eval do
include CommitExt
end
Grit::Git.git_timeout = GIT_OPTS["git_timeout"]
Grit::Git.git_max_size = GIT_OPTS["git_max_size"]

View file

@ -1,2 +0,0 @@
GITOSIS = YAML.load_file("#{Rails.root}/config/gitosis.yml")
EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/email.yml")