diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go index e425b95d209..513f2270da8 100644 --- a/modules/indexer/stats/db.go +++ b/modules/indexer/stats/db.go @@ -37,6 +37,9 @@ func (db *DBIndexer) Index(id int64) error { gitRepo, err := git.OpenRepositoryCtx(ctx, repo.RepoPath()) if err != nil { + if err.Error() == "no such file or directory" { + return nil + } return err } defer gitRepo.Close()