mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-15 18:05:15 +01: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_test.go | ||
adopt.go | ||
avatar_test.go | ||
avatar.go | ||
branch.go | ||
cache.go | ||
check.go | ||
collaboration_test.go | ||
collaboration.go | ||
commit.go | ||
create_test.go | ||
create.go | ||
delete_test.go | ||
delete.go | ||
fork_test.go | ||
fork.go | ||
hooks.go | ||
lfs_test.go | ||
lfs.go | ||
main_test.go | ||
push.go | ||
repository_test.go | ||
repository.go | ||
review_test.go | ||
review.go | ||
template.go | ||
transfer_test.go | ||
transfer.go |