diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 22:26:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 22:26:07 +0000 |
commit | 6cb0610108a079ae27d96d61c48216a9f3b0c476 (patch) | |
tree | ef284daf93c186f5ac2bca24444c737610ec739d /app/views/projects | |
parent | f8be3ab1ff947a0a6e080a9af0c5b97274963436 (diff) | |
download | gitlab-ce-6cb0610108a079ae27d96d61c48216a9f3b0c476.tar.gz |
Add latest changes from gitlab-org/security/gitlab@14-1-stable-ee
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/empty.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index 0fda74a3be5..70d86e79282 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -44,26 +44,26 @@ :preserve git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} cd #{h @project.path} - git switch -c #{default_branch_name} + git switch -c #{h default_branch_name} touch README.md git add README.md git commit -m "add README" - if @project.can_current_user_push_to_default_branch? %span>< - git push -u origin #{ default_branch_name } + git push -u origin #{h default_branch_name } %fieldset %h5= _('Push an existing folder') %pre.bg-light :preserve cd existing_folder - git init --initial-branch=#{default_branch_name} + git init --initial-branch=#{h default_branch_name} git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} git add . git commit -m "Initial commit" - if @project.can_current_user_push_to_default_branch? %span>< - git push -u origin #{ default_branch_name } + git push -u origin #{h default_branch_name } %fieldset %h5= _('Push an existing Git repository') |