Open
Description
Description
One of our Gitea repositories has found itself in a strange state where:
- New PRs cannot be opened. The task fails with a 500 Internal Server Error when submitting the new PR.
- Some (but not all) pre-existing PRs display the following message (I think these are ones that have had new commits pushed to them since whatever event happened that caused the repository to enter this state.):
This pull request is broken due to missing fork information.
- At least one of the non-broken PRs was still able to be merged successfully despite this state.
Some supplementary information based on a minor investigation I did:
- We can still open and continue working on PRs in other repositories.
- We can still pull, push and clone the broken repository in question.
- Other repositories that have had PRs contain several subdirectories within their
refs/pull
directory. - The failing repository contains a
refs/pull
directory but it is empty.- PR Refs still appear in
info/refs
- I have attempted to remove the PR entries and the empty
refs/pull
directory with no change in behaviour.
- PR Refs still appear in
- Repositories that have never had a PR do not seem to have a
refs/pull
.
The attached logs were captured in trace mode and are all entries printed around when a new PR was opened (and the user receives a 500 error)
Gitea Version
1.21.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/Chippit/be5a1616958d74a4aa61954bd520e32b
Screenshots
No response
Git Version
git version 2.25.1
Operating System
Ubuntu 20.04.6 LTS
How are you running Gitea?
Our instance is deployed from binary distributions retrieved via github, and is managed via a Systemd unit, on virtualised hardware.
Database
MySQL/MariaDB