diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
commit | 3b1af5cc7ed2666ff18b718ce5d30fa5a2756674 (patch) | |
tree | 3bc4a40e0ee51ec27eabf917c537033c0c5b14d4 /app/views/projects/empty.html.haml | |
parent | 9bba14be3f2c211bf79e15769cd9b77bc73a13bc (diff) |
Add latest changes from gitlab-org/gitlab@16-1-stable-eev16.1.0-rc42
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r-- | app/views/projects/empty.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index a51d1080d96..deb3c33f733 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -43,13 +43,13 @@ :preserve git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} cd #{h @project.path} - git switch -c #{h escaped_default_branch_name} + git switch --create #{h escaped_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 #{h escaped_default_branch_name } + git push --set-upstream origin #{h escaped_default_branch_name } %h5= _('Push an existing folder') %pre.bg-light @@ -61,7 +61,7 @@ git commit -m "Initial commit" - if @project.can_current_user_push_to_default_branch? %span>< - git push -u origin #{h escaped_default_branch_name } + git push --set-upstream origin #{h escaped_default_branch_name } %h5= _('Push an existing Git repository') %pre.bg-light @@ -71,5 +71,5 @@ git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} - if @project.can_current_user_push_to_default_branch? %span>< - git push -u origin --all - git push -u origin --tags + git push --set-upstream origin --all + git push --set-upstream origin --tags |