]> source.dussan.org Git - gitea.git/commit
Fix push multiple branches error with tests (#31151) (#31153)
authorGiteabot <teabot@gitea.io>
Thu, 30 May 2024 07:04:42 +0000 (15:04 +0800)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 07:04:42 +0000 (07:04 +0000)
commite8c776c79384c1c0a4d707ce5084b27347703848
tree8a0e72ec8c018239ef8c02105a69d326bc28b000
parentcc64d4d2b23fd98f3f8655eff58d810ffaf4bcae
Fix push multiple branches error with tests (#31151) (#31153)

Backport #31151 by @lunny

Fix #31140

The previous logic is wrong when pushing multiple branches. After first
branch updated, it will ignore left other branches sync operations.

As a workaround for the repositories, just push a new commit after the
patch applied will fix the repositories status.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
services/repository/branch.go
tests/integration/git_helper_for_declarative_test.go
tests/integration/git_push_test.go