]> source.dussan.org Git - gitea.git/commit
Remove confusing TrimPrefix(... git.BranchPrefix) (#20369)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 16 Jul 2022 00:10:02 +0000 (08:10 +0800)
committerGitHub <noreply@github.com>
Sat, 16 Jul 2022 00:10:02 +0000 (08:10 +0800)
commitfee0e4dbeac842e606846eda1d311fed352da3b8
tree2d6daef4b8bc38266f298b6d296eafbf910539b8
parent57e0bf43eb3d93933aac351958599b6623ddf978
Remove confusing TrimPrefix(... git.BranchPrefix) (#20369)

Make Repository.GetDefaultBranch return the real branch name, instead of the ref name. Then there is no need to do TrimPrefix for repo.DefaultBranch
modules/git/repo_branch.go
services/repository/adopt.go