Commit 37a15f51 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre Committed by Gabriel Mazetto

Use `default_enabled: :yaml` for the feature flag

parent 579e9d98
......@@ -80,7 +80,7 @@ module Geo
elsif repository.exists?
fetch_geo_mirror
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
@new_repository = true
......@@ -108,7 +108,7 @@ module Geo
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)
temp_repo.create_repository unless temp_repo.exists?
else
......
......@@ -63,7 +63,7 @@ module Geo
elsif repository.exists?
fetch_geo_mirror
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
@new_repository = true
......@@ -96,7 +96,7 @@ module Geo
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)
else
# `git fetch` needs an empty bare repository to fetch into
......
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