Browse Source

disable git fsck for mirrored repos by default (#6018)

tags/v1.21.12.1
Lanre Adelowo zeripath 6 years ago
parent
commit
3a33742e38
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo.go

+ 1
- 1
models/repo.go View File

@@ -1379,7 +1379,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
LowerName: strings.ToLower(opts.Name),
Description: opts.Description,
IsPrivate: opts.IsPrivate,
IsFsckEnabled: true,
IsFsckEnabled: !opts.IsMirror,
}

sess := x.NewSession()


Loading…
Cancel
Save