Remove dead code: RepoRef (#34131)

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

No files matched your search

-6
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, "/")