Skip to content

Commit d595f56

Browse files
add GroupID field to CreateRepoOptions
1 parent 88abcef commit d595f56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/repository/create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type CreateRepoOptions struct {
5050
TrustModel repo_model.TrustModelType
5151
MirrorInterval string
5252
ObjectFormatName string
53+
GroupID int64
5354
}
5455

5556
func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir string, opts CreateRepoOptions) error {
@@ -248,6 +249,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User,
248249
DefaultBranch: opts.DefaultBranch,
249250
DefaultWikiBranch: setting.Repository.DefaultBranch,
250251
ObjectFormatName: opts.ObjectFormatName,
252+
GroupID: opts.GroupID,
251253
}
252254

253255
// 1 - create the repository database operations first

0 commit comments

Comments
 (0)