summaryrefslogtreecommitdiff
path: root/app/views/projects/empty.html.haml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-07 18:09:24 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-07 18:09:24 +0000
commit139d707cfeb007f3cf30f39a38deb0eec6817a47 (patch)
tree6f0e6cb1fe56160656f3dc2c74163ae79ad73715 /app/views/projects/empty.html.haml
parenta93bf027c2619af8c11b030414c339346f13ead6 (diff)
downloadgitlab-ce-139d707cfeb007f3cf30f39a38deb0eec6817a47.tar.gz
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.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 68c2af336b3..bfb22aa8025 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -1,4 +1,5 @@
- @content_class = "limit-container-width" unless fluid_layout
+- default_branch_name = Gitlab::CurrentSettings.default_branch_name.presence || "master"
- breadcrumb_title _("Details")
- page_title _("Details")
@@ -47,7 +48,7 @@
git commit -m "add README"
- if @project.can_current_user_push_to_default_branch?
%span><
- git push -u origin master
+ git push -u origin #{ default_branch_name }
%fieldset
%h5= _('Push an existing folder')
@@ -60,7 +61,7 @@
git commit -m "Initial commit"
- if @project.can_current_user_push_to_default_branch?
%span><
- git push -u origin master
+ git push -u origin #{ default_branch_name }
%fieldset
%h5= _('Push an existing Git repository')