1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Remove dead code: RepoRef (#34131)

The RepoRef is a no-op since Refactor ref type (#33242) (Jan 14)
This commit is contained in:
wxiaoguang
2025-04-07 01:08:10 +08:00
committed by GitHub
parent e94f8d56f1
commit 3fe082a5a3
2 changed files with 14 additions and 20 deletions

View File

@@ -669,12 +669,6 @@ func RepoAssignment(ctx *Context) {
const headRefName = "HEAD"
func RepoRef() func(*Context) {
// old code does: return RepoRefByType(git.RefTypeBranch)
// in most cases, it is an abuse, so we just disable it completely and fix the abuses one by one (if there is anything wrong)
return nil
}
func getRefNameFromPath(repo *Repository, path string, isExist func(string) bool) string {
refName := ""
parts := strings.Split(path, "/")