Skip to content

Commit ac65d00

Browse files
committed
Remove MirrorInterval from CreateRepository
1 parent a3f9e2b commit ac65d00

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

modules/structs/repo.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ type CreateRepoOption struct {
123123
// TrustModel of the repository
124124
// enum: default,collaborator,committer,collaboratorcommitter
125125
TrustModel string `json:"trust_model"`
126-
// MirrorInterval time when creating a mirror (used with mirrors)
127-
MirrorInterval string `json:"mirror_interval"`
128126
}
129127

130128
// EditRepoOption options when editing a repository's properties

routers/api/v1/repo/repo.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ func CreateUserRepo(ctx *context.APIContext, owner *models.User, opt api.CreateR
254254
DefaultBranch: opt.DefaultBranch,
255255
TrustModel: models.ToTrustModel(opt.TrustModel),
256256
IsTemplate: opt.Template,
257-
MirrorInterval: opt.MirrorInterval,
258257
})
259258
if err != nil {
260259
if models.IsErrRepoAlreadyExist(err) {

0 commit comments

Comments
 (0)