summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-01-02 20:14:43 +0800
committerUnknwon <joe2010xtmf@163.com>2015-01-02 20:14:43 +0800
commitc73e9057ae949bd0c0bf329b23d4e5da4ac154d0 (patch)
tree58a2d8bb67ad7b5846bbb2a17809dcef54fa6f79 /models
parent0b56272c130c88fc4441fb1cba04657fe73efc38 (diff)
downloadgitea-c73e9057ae949bd0c0bf329b23d4e5da4ac154d0.tar.gz
gitea-c73e9057ae949bd0c0bf329b23d4e5da4ac154d0.zip
Optmize git-fsck options and fix #820
Diffstat (limited to 'models')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 77c4b140db..65689b6a1e 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1228,7 +1228,7 @@ func GitFsck() {
isGitFscking = true
defer func() { isGitFscking = false }()
- args := append([]string{"fsck"}, setting.GitFsckArgs...)
+ args := append([]string{"fsck"}, setting.Git.Fsck.Args...)
if err := x.Where("id > 0").Iterate(new(Repository),
func(idx int, bean interface{}) error {
repo := bean.(*Repository)
@@ -1252,7 +1252,7 @@ func GitFsck() {
}
func GitGcRepos() error {
- args := append([]string{"gc"}, setting.GitGcArgs...)
+ args := append([]string{"gc"}, setting.Git.GcArgs...)
return x.Where("id > 0").Iterate(new(Repository),
func(idx int, bean interface{}) error {
repo := bean.(*Repository)