mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-02 03:45:23 +03:00
921df1cbad
#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. |
||
---|---|---|
.. | ||
archiver | ||
files | ||
adopt.go | ||
adopt_test.go | ||
avatar.go | ||
avatar_test.go | ||
branch.go | ||
cache.go | ||
check.go | ||
collaboration.go | ||
collaboration_test.go | ||
commit.go | ||
create.go | ||
create_test.go | ||
delete.go | ||
delete_test.go | ||
fork.go | ||
fork_test.go | ||
hooks.go | ||
lfs.go | ||
lfs_test.go | ||
main_test.go | ||
push.go | ||
repository.go | ||
repository_test.go | ||
review.go | ||
review_test.go | ||
template.go | ||
transfer.go | ||
transfer_test.go |