summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Shimokawa <shimokawa@fsfe.org>2020-07-05 14:56:10 +0200
committerGitHub <noreply@github.com>2020-07-05 15:56:10 +0300
commitc96da610c2db2427e6cbe183497bd6c09b15b9dc (patch)
treeaab6715bb8c356e921de91cfe2ccd842e3f31282
parente46dbec294cd254f087574e72ec773a65001785d (diff)
downloadgitea-c96da610c2db2427e6cbe183497bd6c09b15b9dc.tar.gz
gitea-c96da610c2db2427e6cbe183497bd6c09b15b9dc.zip
templates/repo/empty.tmpl : fix repo setup instructions (#12147)
Co-authored-by: codeberg <codeberg@codeberg.org> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--templates/repo/empty.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl
index 9aa0706c29..4067bce716 100644
--- a/templates/repo/empty.tmpl
+++ b/templates/repo/empty.tmpl
@@ -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>