Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 12decbbfeee..6428e0196a8 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -443,6 +443,7 @@ class ProjectsController < Projects::ApplicationController
params.require(:project)
.permit(project_params_attributes + attributes)
.merge(import_url_params)
+ .merge(object_format_params)
end
def project_feature_attributes
@@ -513,7 +514,6 @@ class ProjectsController < Projects::ApplicationController
:merge_method,
:initialize_with_sast,
:initialize_with_readme,
- :use_sha256_repository,
:ci_separated_caches,
:suggestion_commit_message,
:packages_enabled,
@@ -532,6 +532,12 @@ class ProjectsController < Projects::ApplicationController
{}
end
+ def object_format_params
+ return {} unless Gitlab::Utils.to_boolean(params.dig(:project, :use_sha256_repository))
+
+ { repository_object_format: Repository::FORMAT_SHA256 }
+ end
+
def active_new_project_tab
project_params[:import_url].present? ? 'import' : 'blank'
end