I accidentally wiped the entirety of my git instance, except for the database (whoops). Everything worked fine-ish after I recovered by pushing all the repositories back to the instance (had them all local), but it doesn't recognize new branches, which is really annoying when trying to do practically anything related to pull requests. What can I do to fix this?
After accidentally partially wiping git instance, "The database representation of this repository is out of synchronization" #465
Please visit the admin panel and click on "Resynchronize Git hooks of all repositories (pre-receive, update, post-receive, proc-receive, ...)". Depending on the number of repos, this will take a while.
forgejo/forgejo#10397 will make this unnecessary, but it is not yet released. If you are curious, you can also try running an experimental version of Forgejo to see if this would also fix your problem :)
After repairing the hooks, you can then also run "Sync missed branches from Git data to database" and "Sync tags from Git data to database" to fix it once. For new pushes, the hooks should automatically take care of synching.
Please report if this fixed your problem.
It removed the annoying yellow banner, but even after pushing a commit to main and running both cron jobs, some of the branches still aren't showing up.
No due date set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?