diff options
author | zeripath <art27@cantab.net> | 2020-03-26 19:14:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 19:14:51 +0000 |
commit | 52cfd2743c0e85b36081cf80a850e6a5901f1865 (patch) | |
tree | 9b13df2465992cf00fdeb375dd04bd7c17c09f65 /templates/repo/create.tmpl | |
parent | b1c331c84596f73aeab60178daf92f3539e026b9 (diff) | |
download | gitea-52cfd2743c0e85b36081cf80a850e6a5901f1865.tar.gz gitea-52cfd2743c0e85b36081cf80a850e6a5901f1865.zip |
Option to set default branch at repository creation (#10803)
* Option to set default branch at repository creation
* Handle template repos with non-default master branch
* Add DefaultBranch handling on creation to API
Fix #9542
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index b63af09cec..bd97f9de1e 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -162,6 +162,10 @@ <label>{{.i18n.Tr "repo.auto_init"}}</label> </div> </div> + <div class="inline field"> + <label for="default_branch">{{.i18n.Tr "repo.default_branch"}}</label> + <input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="master"> + </div> </div> <br/> |