gitea/routers/private
Jason Song f371f84fa3
Restore deleted branches when syncing ()
Regression of . If a branch has been deleted, repushing it won't
restore it.

Lunny may have noticed that, but I didn't delve into the comment then
overlooked it:
https://github.com/go-gitea/gitea/pull/29493#discussion_r1509046867

The additional comments added are to explain the issue I found during
testing, which are unrelated to the fixes.
..
tests/repos Fix verifyCommits error when push a new branch ()
actions.go Move context from modules to services ()
default_branch.go Move get/set default branch from git package to gitrepo package to hide repopath ()
hook_post_receive.go Restore deleted branches when syncing ()
hook_pre_receive.go Move context from modules to services ()
hook_proc_receive.go Move context from modules to services ()
hook_verification.go Improve ObjectFormat interface ()
hook_verification_test.go Adjust object format interface ()
internal.go Move context from modules to services ()
internal_repo.go Move context from modules to services ()
key.go Move context from modules to services ()
mail.go Move context from modules to services ()
main_test.go make writing main test easier ()
manager.go Move context from modules to services ()
manager_process.go Move context from modules to services ()
manager_unix.go Move context from modules to services ()
manager_windows.go Move context from modules to services ()
restore_repo.go Move context from modules to services ()
serv.go Move context from modules to services ()
ssh_log.go Move context from modules to services ()