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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 03:09:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 03:09:29 +0300
commitb060b8b7e4e895e28226b366b92081512225cd14 (patch)
tree0364ce1045b2e0a1cc3cad7b0d487e254335b66c /app/controllers/concerns
parent49a923c646a2c24b5377cfde8236c73094c60d42 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/import_url_params.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/concerns/import_url_params.rb b/app/controllers/concerns/import_url_params.rb
index e51e4157f50..28a3876810a 100644
--- a/app/controllers/concerns/import_url_params.rb
+++ b/app/controllers/concerns/import_url_params.rb
@@ -4,7 +4,13 @@ module ImportUrlParams
def import_url_params
return {} unless params.dig(:project, :import_url).present?
- { import_url: import_params_to_full_url(params[:project]) }
+ {
+ import_url: import_params_to_full_url(params[:project]),
+ # We need to set import_type because attempting to retry an import by URL
+ # could leave a stale value around. This would erroneously cause an importer
+ # (e.g. import/export) to run.
+ import_type: 'git'
+ }
end
def import_params_to_full_url(params)