one config file, git options added
This commit is contained in:
parent
8209a2ff49
commit
367c4f42f0
6 changed files with 30 additions and 9 deletions
|
@ -1,2 +0,0 @@
|
||||||
from: notify@gitlabhq.com
|
|
||||||
host: gitlabhq.com
|
|
24
config/gitlab.yml
Normal file
24
config/gitlab.yml
Normal 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
|
|
@ -1,5 +0,0 @@
|
||||||
admin_uri: git@localhost:gitosis-admin.git
|
|
||||||
base_path: /home/git/repositories/
|
|
||||||
host: localhost
|
|
||||||
git_user: git
|
|
||||||
# port: 22
|
|
3
config/initializers/gitlabhq/10_load_config.rb
Normal file
3
config/initializers/gitlabhq/10_load_config.rb
Normal 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"]
|
|
@ -10,3 +10,6 @@ end
|
||||||
Grit::Commit.class_eval do
|
Grit::Commit.class_eval do
|
||||||
include CommitExt
|
include CommitExt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Grit::Git.git_timeout = GIT_OPTS["git_timeout"]
|
||||||
|
Grit::Git.git_max_size = GIT_OPTS["git_max_size"]
|
|
@ -1,2 +0,0 @@
|
||||||
GITOSIS = YAML.load_file("#{Rails.root}/config/gitosis.yml")
|
|
||||||
EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/email.yml")
|
|
Loading…
Add table
Reference in a new issue