1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-12 18:54:28 +00:00
Lunny Xiao ff565a787f
Remove unnecessary syncbranchToDB with tests (#28624) (#28629)
Replace #28625

Backport #28624 by lunny

#28361 introduced `syncBranchToDB` in `CreateNewBranchFromCommit`. This
PR will revert the change because it's unnecessary. Every push will
already be checked by `syncBranchToDB`.
This PR also created a test to ensure it's right.
2023-12-29 08:47:02 +00:00
..
2023-03-10 08:28:32 -06:00