diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-15 15:10:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-15 15:10:11 +0300 |
commit | 96acc69fae1ee7d559ba7eaa4e8304c8261525e3 (patch) | |
tree | b1ed433da35a415cab8ed544d85ac4c939efab0e /app/views/projects/empty.html.haml | |
parent | a1498861799d1695682d72870580a6c3fb5ca3cf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r-- | app/views/projects/empty.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index 365f9fb46fa..027b81d6c68 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -44,6 +44,7 @@ :preserve git clone #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} cd #{h @project.path} + git switch -c #{default_branch_name} touch README.md git add README.md git commit -m "add README" @@ -56,7 +57,7 @@ %pre.bg-light :preserve cd existing_folder - git init + git init --initial-branch=#{default_branch_name} git remote add origin #{ content_tag(:span, default_url_to_repo, class: 'js-clone')} git add . git commit -m "Initial commit" |