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