summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorAndreas Shimokawa <shimokawa@fsfe.org>2020-07-03 23:22:14 +0200
committerGitHub <noreply@github.com>2020-07-03 17:22:14 -0400
commit510e4bd245719d08ce9832fd705a478ea151f1f6 (patch)
tree37fe6469b0b96c39e10d35300f4f365785e649e2 /templates/repo
parentae56411e9f78415745c235fb92fbb7abc139b966 (diff)
downloadgitea-510e4bd245719d08ce9832fd705a478ea151f1f6.tar.gz
gitea-510e4bd245719d08ce9832fd705a478ea151f1f6.zip
templates/repo/empty.tmpl : fix repo setup instructions (#12122)
Co-authored-by: codeberg <codeberg@codeberg.org>
Diffstat (limited to 'templates/repo')
-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>