diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-09 03:15:35 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-08 14:15:35 -0500 |
commit | be06dee04ce46de2da222fc9b2be4fc3b68b816d (patch) | |
tree | 01dacbca7efd24412c7762b41d34f08afcca3e87 /models/repo.go | |
parent | baf089e5b918fd967503e79022d3429b945359ef (diff) | |
download | gitea-be06dee04ce46de2da222fc9b2be4fc3b68b816d.tar.gz gitea-be06dee04ce46de2da222fc9b2be4fc3b68b816d.zip |
Move code indexer related code to a new package (#9191)
* move code indexer related code to a new package
* fix lint
* fix tests
* fix fmt
* GetMaxID support interface parameter
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go index 2fd4df9206..e809bafa30 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1112,10 +1112,6 @@ func MigrateRepositoryGitData(doer, u *User, repo *Repository, opts api.MigrateR repo, err = CleanUpMigrateInfo(repo) } - if err != nil && !repo.IsEmpty { - UpdateRepoIndexer(repo) - } - return repo, err } |