We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c754e6 commit 34cb29dCopy full SHA for 34cb29d
services/context/repo.go
@@ -680,11 +680,9 @@ func RepoAssignment(ctx *Context) {
680
const headRefName = "HEAD"
681
682
func RepoRef() func(*Context) {
683
- if !setting.IsProd || setting.IsInTesting {
684
- // RepoRef should not be used, the handler should explicit use the ref it needs
685
- return nil
686
- }
687
- return RepoRefByType(git.RefTypeBranch)
+ // 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
688
}
689
690
func getRefNameFromPath(repo *Repository, path string, isExist func(string) bool) string {
0 commit comments