Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
8b4ba696feaa
Unverified
Commit
ba6c309f
authored
Sep 08, 2017
by
Visay Keo
Browse files
Read import sources from setting at first initialization
parent
0c141f1f8d7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/models/application_setting.rb
View file @
8b4ba696
...
...
@@ -247,7 +247,7 @@ def self.defaults
housekeeping_full_repack_period:
50
,
housekeeping_gc_period:
200
,
housekeeping_incremental_repack_period:
10
,
import_sources:
G
itlab
::
I
mport
S
ources
.
values
,
import_sources:
Settings
.
g
itlab
[
'i
mport
_s
ources
'
]
,
koding_enabled:
false
,
koding_url:
nil
,
max_artifacts_size:
Settings
.
artifacts
[
'max_size'
],
...
...
changelogs/unreleased/import-sources-fix.yml
0 → 100644
View file @
8b4ba696
---
title
:
Read import sources from setting at first initialization
merge_request
:
14141
author
:
Visay Keo
type
:
fixed
config/initializers/1_settings.rb
View file @
8b4ba696
...
...
@@ -269,7 +269,7 @@ def cron_random_weekly_time
Settings
.
gitlab
.
default_projects_features
[
'container_registry'
]
=
true
if
Settings
.
gitlab
.
default_projects_features
[
'container_registry'
].
nil?
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
]
=
Settings
.
__send__
(
:verify_constant
,
Gitlab
::
VisibilityLevel
,
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
],
Gitlab
::
VisibilityLevel
::
PRIVATE
)
Settings
.
gitlab
[
'domain_whitelist'
]
||=
[]
Settings
.
gitlab
[
'import_sources'
]
||=
%w[github bitbucket gitlab google_code fogbugz git gitlab_project gitea]
Settings
.
gitlab
[
'import_sources'
]
||=
Gitlab
::
ImportSources
.
values
Settings
.
gitlab
[
'trusted_proxies'
]
||=
[]
Settings
.
gitlab
[
'no_todos_messages'
]
||=
YAML
.
load_file
(
Rails
.
root
.
join
(
'config'
,
'no_todos_messages.yml'
))
Settings
.
gitlab
[
'usage_ping_enabled'
]
=
true
if
Settings
.
gitlab
[
'usage_ping_enabled'
].
nil?
...
...
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