mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-04 10:05:18 +02:00
add GroupID field to CreateRepoOptions
This commit is contained in:
parent
3711d573e6
commit
2066f91862
@ -52,6 +52,7 @@ type CreateRepoOptions struct {
|
||||
TrustModel repo_model.TrustModelType
|
||||
MirrorInterval string
|
||||
ObjectFormatName string
|
||||
GroupID int64
|
||||
}
|
||||
|
||||
func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir string, opts CreateRepoOptions) error {
|
||||
@ -254,6 +255,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User,
|
||||
DefaultBranch: opts.DefaultBranch,
|
||||
DefaultWikiBranch: setting.Repository.DefaultBranch,
|
||||
ObjectFormatName: opts.ObjectFormatName,
|
||||
GroupID: opts.GroupID,
|
||||
}
|
||||
|
||||
// 1 - create the repository database operations first
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user