aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2019-02-09 15:34:50 +0100
committerzeripath <art27@cantab.net>2019-02-09 14:34:50 +0000
commit3a33742e386f75a2100ced6e52a71fc6dc397c28 (patch)
tree1154ec50c76438bcf31358c2d1fa2aacc2169695
parentd252d4eb8c739012ce127674c4e65b720724790b (diff)
downloadgitea-3a33742e386f75a2100ced6e52a71fc6dc397c28.tar.gz
gitea-3a33742e386f75a2100ced6e52a71fc6dc397c28.zip
disable git fsck for mirrored repos by default (#6018)
-rw-r--r--models/repo.go2
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()