]> source.dussan.org Git - gitea.git/commit
Fix incorrect default branch when adopt a repository (#30912)
authoryp05327 <576951401@qq.com>
Thu, 9 May 2024 08:44:26 +0000 (17:44 +0900)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 08:44:26 +0000 (08:44 +0000)
commite94723f2de7d9bf12d870f5ce9ffb291a99ba090
tree3d854905234734ad4a6222a1f7cdfb569c1775cf
parented0fc2729e75f84992521e3c8e54357b83cc4a36
Fix incorrect default branch when adopt a repository (#30912)

Fix #30521

we should sync branches first, then detect default branch, or
`git_model.FindBranchNames` will always return empty list, and the
detection will be wrong.
services/repository/adopt.go