- Gitea version (or commit ref): 1.11.1
- Git version: 2.25
- Operating system: Windows
- Database (use
[x]):
- Can you reproduce the bug at https://try.gitea.io:
Description
Squash and merge functionality gets broken when branch is rebased.
It seems it caches original parent commit and when the parent changes (after rebase) it doesn't reflect those changes.
- In commit message it shows unrelated messages from previous commits
- After completing squash and merge it shows invalid commits in PR
Try looking at commit message on provided URL and also try doing squash and merge.
Screenshots

[x]):Description
Squash and merge functionality gets broken when branch is rebased.
It seems it caches original parent commit and when the parent changes (after rebase) it doesn't reflect those changes.
Try looking at commit message on provided URL and also try doing squash and merge.
Screenshots