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 3130aeb commit 9fe761cCopy full SHA for 9fe761c
modules/git/ref.go
@@ -5,7 +5,6 @@ package git
5
6
import (
7
"regexp"
8
- "slices"
9
"strings"
10
11
"code.gitea.io/gitea/modules/util"
@@ -221,11 +220,3 @@ func (ref RefName) RefWebLinkPath() string {
221
220
}
222
return string(refType) + "/" + util.PathEscapeSegments(ref.ShortName())
223
224
-
225
-func RefNameFromUserInput(ref string, allowedTypes ...RefType) RefName {
226
- refName := RefName(ref)
227
- if !slices.Contains(allowedTypes, refName.RefType()) {
228
- return ""
229
- }
230
- return refName
231
-}
0 commit comments