diff options
author | Stan Hu <stanhu@gmail.com> | 2018-08-23 15:21:06 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-08-24 10:29:14 -0700 |
commit | f2005125dfe7810de910b61dee8d7a9203a6ca6e (patch) | |
tree | 292dbe52167f294d75e7637e60c521c02a0cdb4d /app/views/import/bitbucket_server/status.html.haml | |
parent | 842377ab3c5b80a3758ad8c36dc3358bd265bc10 (diff) | |
download | gitlab-ce-f2005125dfe7810de910b61dee8d7a9203a6ca6e.tar.gz |
Use slugs for default project path and sanitize names before import
Users importing from Bitbucket Cloud, Bitbucket Server, or GitHub
often complained about getting failed imports due to 422 errors.
This change ensures that project names are imported with names that
are guaranteed to pass the regular expression validation.
Part of #50021
Diffstat (limited to 'app/views/import/bitbucket_server/status.html.haml')
-rw-r--r-- | app/views/import/bitbucket_server/status.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/import/bitbucket_server/status.html.haml b/app/views/import/bitbucket_server/status.html.haml index 3d05a5e696f..ae09e0dfa18 100644 --- a/app/views/import/bitbucket_server/status.html.haml +++ b/app/views/import/bitbucket_server/status.html.haml @@ -61,7 +61,7 @@ = text_field_tag :path, current_user.namespace_path, class: "input-group-text input-large form-control", tabindex: 1, disabled: true %span.input-group-prepend .input-group-text / - = text_field_tag :path, repo.name, class: "input-mini form-control", tabindex: 2, autofocus: true, required: true + = text_field_tag :path, sanitize_project_name(repo.slug), class: "input-mini form-control", tabindex: 2, autofocus: true, required: true %td.import-actions.job-status = button_tag class: 'btn btn-import js-add-to-import' do Import |