mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
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>
This commit is contained in:
@ -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/>
|
||||
|
Reference in New Issue
Block a user