diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-02-09 15:34:50 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-02-09 14:34:50 +0000 |
commit | 3a33742e386f75a2100ced6e52a71fc6dc397c28 (patch) | |
tree | 1154ec50c76438bcf31358c2d1fa2aacc2169695 | |
parent | d252d4eb8c739012ce127674c4e65b720724790b (diff) | |
download | gitea-3a33742e386f75a2100ced6e52a71fc6dc397c28.tar.gz gitea-3a33742e386f75a2100ced6e52a71fc6dc397c28.zip |
disable git fsck for mirrored repos by default (#6018)
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 873fd407fb..c0e69b0e38 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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() |