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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
37a15f51
Commit
37a15f51
authored
Mar 30, 2022
by
Douglas Barbosa Alexandre
Committed by
Gabriel Mazetto
Apr 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `default_enabled: :yaml` for the feature flag
parent
579e9d98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/services/geo/framework_repository_sync_service.rb
ee/app/services/geo/framework_repository_sync_service.rb
+2
-2
ee/app/services/geo/repository_base_sync_service.rb
ee/app/services/geo/repository_base_sync_service.rb
+2
-2
No files found.
ee/app/services/geo/framework_repository_sync_service.rb
View file @
37a15f51
...
@@ -80,7 +80,7 @@ module Geo
...
@@ -80,7 +80,7 @@ module Geo
elsif
repository
.
exists?
elsif
repository
.
exists?
fetch_geo_mirror
fetch_geo_mirror
else
else
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
type: :ops
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
default_enabled: :yaml
)
clone_geo_mirror
clone_geo_mirror
@new_repository
=
true
@new_repository
=
true
...
@@ -108,7 +108,7 @@ module Geo
...
@@ -108,7 +108,7 @@ module Geo
log_info
(
"Attempting to fetch repository via git"
)
log_info
(
"Attempting to fetch repository via git"
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
type: :ops
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
default_enabled: :yaml
)
clone_geo_mirror
(
target_repository:
temp_repo
)
clone_geo_mirror
(
target_repository:
temp_repo
)
temp_repo
.
create_repository
unless
temp_repo
.
exists?
temp_repo
.
create_repository
unless
temp_repo
.
exists?
else
else
...
...
ee/app/services/geo/repository_base_sync_service.rb
View file @
37a15f51
...
@@ -63,7 +63,7 @@ module Geo
...
@@ -63,7 +63,7 @@ module Geo
elsif
repository
.
exists?
elsif
repository
.
exists?
fetch_geo_mirror
fetch_geo_mirror
else
else
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
type: :ops
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
default_enabled: :yaml
)
clone_geo_mirror
clone_geo_mirror
@new_repository
=
true
@new_repository
=
true
...
@@ -96,7 +96,7 @@ module Geo
...
@@ -96,7 +96,7 @@ module Geo
log_info
(
"Attempting to fetch repository via git"
)
log_info
(
"Attempting to fetch repository via git"
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
type: :ops
)
if
Feature
.
enabled?
(
'geo_use_clone_on_first_sync'
,
default_enabled: :yaml
)
clone_geo_mirror
(
target_repository:
temp_repo
)
clone_geo_mirror
(
target_repository:
temp_repo
)
else
else
# `git fetch` needs an empty bare repository to fetch into
# `git fetch` needs an empty bare repository to fetch into
...
...
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