Open
Description
- Gitea version (or commit ref): First seen in 1.9.6, but also exists in 1.10.2
- Git version: 2.22.0
- Operating system: gitea docker image
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No (clone fails)
- Not relevant
- Log gist:
Description
note: This issue is not seen in 1.11.0+dev-575-g1e9b3d474
To reproduce:
- push a large repo like https://github.com/torvalds/linux.git into gitea
- open a PR against master, can be a simple change
- try to merge (rebase and merge has same behavior) PR, takes about a minute to complete.
On 1.8.3+2-g11f6ed4f8 the merge takes a few seconds. It seems this issue was originally reported in #601 and #6287 then fixed in #4921 and resurfaced somewhere between 1.8.2 and 1.9.6.
top shows /usr/libexec/git-core/git rev-list --objects --stdin --not --all --quiet
using 100% CPU during merge. Generating the commit-graph doesn't help.