Description
Description
See the warning at the top of the screenshot included below.
Link to demo repository: https://demo.gitea.com/matrss/broken-hooks-demo
The issue is reproducible with the following git commands (adapt the clone URL and cd accordingly):
git clone [email protected]:matrss/broken-hooks-demo.git
cd broken-hooks-demo
git commit --allow-empty -m "Initial commit"
git push
git switch -c a
git commit --allow-empty -m "commit on a"
sleep 1
git push origin a
git commit --allow-empty -m "another commit on a"
git switch main
git commit --allow-empty -m "commit on main"
sleep 1
git push origin main a
i.e. this warning appears when pushing more than one branch with a single git push
.
If I remove the git push origin a
in the middle from the above commands then the warning does not appear, but instead the "a" branch will not be shown in the web UI, even though git reports it as pushed and up-to-date. That is probably a related issue.
This issue was also reported to Forgejo here: https://codeberg.org/forgejo/forgejo/issues/3518 where I bisected the cause to be the changes made in #29493.
Gitea Version
1.23.0+dev-128-g14f6105ce0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Database
None