Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
1d543e64
Commit
1d543e64
authored
Jul 02, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished with configs
parent
9b337b83
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
11 deletions
+32
-11
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+1
-1
config/gitlab.yml.example
config/gitlab.yml.example
+15
-5
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+15
-3
lib/gitlab/gitolite.rb
lib/gitlab/gitolite.rb
+1
-1
lib/tasks/gitlab/status.rake
lib/tasks/gitlab/status.rake
+0
-1
No files found.
app/controllers/admin/users_controller.rb
View file @
1d543e64
...
...
@@ -34,7 +34,7 @@ class Admin::UsersController < ApplicationController
def
new
@admin_user
=
User
.
new
(
:projects_limit
=>
G
ITLAB_OPTS
[
"default_projects_limit"
]
)
@admin_user
=
User
.
new
(
:projects_limit
=>
G
itlab
.
config
.
default_projects_limit
)
end
def
edit
...
...
config/gitlab.yml.example
View file @
1d543e64
...
...
@@ -2,6 +2,10 @@
# Gitlab application config file #
# # # # # # # # # # # # # # # # # #
#
# 1. Common settings
# ==========================
# Web application specific settings
web:
host: localhost
...
...
@@ -13,11 +17,21 @@ web:
email:
from: notify@localhost
# Application specific settings
# Like default project limit for user etc
app:
default_projects_limit: 10
#
# 2. Advanced settings:
# ==========================
# Git Hosting configuration
git_host:
admin_uri: git@localhost:gitolite-admin
base_path: /home/git/repositories/
host: localhost
#
host: localhost
git_user: git
upload_pack: true
receive_pack: true
...
...
@@ -33,7 +47,3 @@ git:
git_max_size: 5242880 # 5.megabytes
# Git timeout to read commit, in seconds
git_timeout: 10
# Gitlab settings
gitlab:
default_projects_limit: 10
config/initializers/1_settings.rb
View file @
1d543e64
...
...
@@ -33,7 +33,7 @@ class Settings < Settingslogic
end
def
ssh_host
git_host
[
'host'
]
||
'localhost'
git_host
[
'host'
]
||
web_host
||
'localhost'
end
def
ssh_path
...
...
@@ -49,11 +49,19 @@ class Settings < Settingslogic
end
def
git_upload_pack
git_host
[
'upload_pack'
]
||
true
if
git_host
[
'upload_pack'
]
==
false
false
else
true
end
end
def
git_receive_pack
git_host
[
'receive_pack'
]
||
true
if
git_host
[
'receive_pack'
]
==
false
false
else
true
end
end
def
git_bin_path
...
...
@@ -71,5 +79,9 @@ class Settings < Settingslogic
def
gitolite_admin_uri
git
[
'admin_uri'
]
||
'git@localhost:gitolite-admin'
end
def
default_projects_limit
app
[
'default_projects_limit'
]
||
10
end
end
end
lib/gitlab/gitolite.rb
View file @
1d543e64
...
...
@@ -33,7 +33,7 @@ module Gitlab
end
def
configure
Timeout
::
timeout
(
2
0
)
do
Timeout
::
timeout
(
3
0
)
do
File
.
open
(
File
.
join
(
Rails
.
root
,
'tmp'
,
"gitlabhq-gitolite.lock"
),
"w+"
)
do
|
f
|
begin
f
.
flock
(
File
::
LOCK_EX
)
...
...
lib/tasks/gitlab/status.rake
View file @
1d543e64
...
...
@@ -21,7 +21,6 @@ namespace :gitlab do
return
end
GIT_HOST
=
YAML
.
load_file
(
"
#{
Rails
.
root
}
/config/gitlab.yml"
)[
"git_host"
]
print
"
#{
git_base_path
}
............"
if
File
.
exists?
(
git_base_path
)
puts
"exists"
.
green
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment