Commit 367c4f42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

one config file, git options added

parent 8209a2ff
from: notify@gitlabhq.com
host: gitlabhq.com
# 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
admin_uri: git@localhost:gitosis-admin.git
base_path: /home/git/repositories/
host: localhost
git_user: git
# port: 22
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 ...@@ -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"]
GITOSIS = YAML.load_file("#{Rails.root}/config/gitosis.yml")
EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/email.yml")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment