summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-03-26 19:14:51 +0000
committerGitHub <noreply@github.com>2020-03-26 19:14:51 +0000
commit52cfd2743c0e85b36081cf80a850e6a5901f1865 (patch)
tree9b13df2465992cf00fdeb375dd04bd7c17c09f65 /models/repo.go
parentb1c331c84596f73aeab60178daf92f3539e026b9 (diff)
downloadgitea-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 'models/repo.go')
-rw-r--r--models/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index dd50db9a0b..74b5a021f4 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -929,6 +929,7 @@ type CreateRepoOptions struct {
IssueLabels string
License string
Readme string
+ DefaultBranch string
IsPrivate bool
IsMirror bool
AutoInit bool