-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels

Description
- Gitea version (or commit ref): 1.13.1
- Git version: Not relevant
- Operating system:docker image
- Database (use
[x]
):- PostgreSQLMySQLMSSQLSQLiteTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)NoTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
- Log gist: Not relevant
Description
REPO_INDEXER won't index mirrored repository after sync
mjanssens
Activity
zeripath commentedon Apr 9, 2021
It might be that you don't have a default branch set?
Go to the Repository Settings and change/re-set the default branch.
ghost commentedon Apr 10, 2021
I tired resetting the default branch but it doesn't work.
Also I didn't see any error in the logs. I am sure that I have RepoIndexerEnabled, as the code search works for plain repos instead of the mirrored ones.
[-]REPO_INDEXER won't index mirrored repository, even if the NotifySyncPushCommits is called[/-][+]REPO_INDEXER won't index mirrored repository[/+]ghost commentedon Apr 10, 2021
@zeripath
Tired on 1.13.7 with many different mirrored repos, but the problem persists.
Also I tried deleting
repos.bleve
to rebuild the index. The REPO_INDEXER will properly index the current default branch of the mirrored repo, but it's not going to index new commits after sync[-]REPO_INDEXER won't index mirrored repository[/-][+][BUG] REPO_INDEXER won't index mirrored repository after sync[/+]ghost commentedon Apr 26, 2021
@zeripath Same on v1.14.1
ghost commentedon May 13, 2021
Same with v1.14.2
lflare commentedon Feb 22, 2023
Just to chime in that I am also noticing this issue on v1.18.5. Default branch is set as well.
I patched the original snippet of code to log out the test variables, in the following, and it seems that
opts.RefFullName
is not the same between push and sync pull.When pushing,
When sync pulling,
So clearly the comparison of
setting.Indexer.RepoIndexerEnabled && opts.RefFullName == git.BranchPrefix+repo.DefaultBranch
might need to be modified.Use the type RefName for all the needed places and fix pull mirror sy…