@ -252,7 +252,7 @@ func CreateUserRepo(ctx *context.APIContext, owner *user_model.User, opt api.Cre
Gitignores : opt . Gitignores ,
Gitignores : opt . Gitignores ,
License : opt . License ,
License : opt . License ,
Readme : opt . Readme ,
Readme : opt . Readme ,
IsPrivate : opt . Private ,
IsPrivate : opt . Private || setting . Repository . ForcePrivate ,
AutoInit : opt . AutoInit ,
AutoInit : opt . AutoInit ,
DefaultBranch : opt . DefaultBranch ,
DefaultBranch : opt . DefaultBranch ,
TrustModel : repo_model . ToTrustModel ( opt . TrustModel ) ,
TrustModel : repo_model . ToTrustModel ( opt . TrustModel ) ,
@ -364,7 +364,7 @@ func Generate(ctx *context.APIContext) {
Name : form . Name ,
Name : form . Name ,
DefaultBranch : form . DefaultBranch ,
DefaultBranch : form . DefaultBranch ,
Description : form . Description ,
Description : form . Description ,
Private : form . Private ,
Private : form . Private || setting . Repository . ForcePrivate ,
GitContent : form . GitContent ,
GitContent : form . GitContent ,
Topics : form . Topics ,
Topics : form . Topics ,
GitHooks : form . GitHooks ,
GitHooks : form . GitHooks ,