]> source.dussan.org Git - gitea.git/commitdiff
templates/repo/empty.tmpl : fix repo setup instructions (#12147)
authorAndreas Shimokawa <shimokawa@fsfe.org>
Sun, 5 Jul 2020 12:56:10 +0000 (14:56 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 12:56:10 +0000 (15:56 +0300)
Co-authored-by: codeberg <codeberg@codeberg.org>
Co-authored-by: zeripath <art27@cantab.net>
templates/repo/empty.tmpl

index 9aa0706c29ea279f6300d631183d7209e6983adf..4067bce7163236c6641d2d0a56f31c1c1a24f331 100644 (file)
@@ -49,7 +49,7 @@
                                                                <div class="markdown">
                                                                        <pre><code>touch README.md
 git init
-{{if ne .Repository.DefaultBranch "master"}}git branch -m master {{.Repository.DefaultBranch}}{{end}}
+{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
 git add README.md
 git commit -m "first commit"
 git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>