summaryrefslogtreecommitdiffstats
path: root/modules/repository
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository')
-rw-r--r--modules/repository/create.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/repository/create.go b/modules/repository/create.go
index 7bcda0fe45..b9a72ad573 100644
--- a/modules/repository/create.go
+++ b/modules/repository/create.go
@@ -211,6 +211,7 @@ func CreateRepository(doer, u *user_model.User, opts CreateRepoOptions) (*repo_m
IsEmpty: !opts.AutoInit,
TrustModel: opts.TrustModel,
IsMirror: opts.IsMirror,
+ DefaultBranch: opts.DefaultBranch,
}
var rollbackRepo *repo_model.Repository