summaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorHugo Hoitink <10838836+hoitih@users.noreply.github.com>2022-02-09 20:20:44 +0100
committerGitHub <noreply@github.com>2022-02-09 19:20:44 +0000
commit5579345549d638266b1ff5c5efba66f247bf0b4d (patch)
tree7d60a1faac68e4fc37001ef71644f229bb3c8e24 /modules/git
parent2f766082214e8f10375a68323e6b7bb1c742775d (diff)
downloadgitea-5579345549d638266b1ff5c5efba66f247bf0b4d.tar.gz
gitea-5579345549d638266b1ff5c5efba66f247bf0b4d.zip
Update object repo with the migrated repository (#18684)
When migrating a repository (from GitHub) using the API (**POST** `repos/migrate`), the Code Indexer is not updated. Searching in the user interface will not return any results. When migrating the same repository using **+/New Migration** in the web interface, the search index is updated and searching works as expected. Caused by the fact that object `repo` is never updated with the migrated repo so `setting.Indexer.RepoIndexerEnabled && !repo.IsEmpty` in `modules/notification/indexer/indexer.go:NotifyMigrateRepository` always evaluates to `false`. Tested with gitea:1.16.1, MariaDB:10, Breve in `Run Mode: Dev`.
Diffstat (limited to 'modules/git')
0 files changed, 0 insertions, 0 deletions