mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-05-31 22:58:39 +00:00
Backport #22513
Co-authored-by: Brecht Van Lommel <brecht@blender.org>
(cherry picked from commit fa33271157
)
This commit is contained in:
parent
1b84e7a24d
commit
546f1f23a0
|
@ -786,7 +786,8 @@ func setTemplateIfExists(ctx *context.Context, ctxDataKey string, possibleFiles
|
|||
}
|
||||
|
||||
}
|
||||
if !strings.HasPrefix(template.Ref, "refs/") { // Assume that the ref intended is always a branch - for tags users should use refs/tags/<ref>
|
||||
|
||||
if template.Ref != "" && !strings.HasPrefix(template.Ref, "refs/") { // Assume that the ref intended is always a branch - for tags users should use refs/tags/<ref>
|
||||
template.Ref = git.BranchPrefix + template.Ref
|
||||
}
|
||||
ctx.Data["HasSelectedLabel"] = len(labelIDs) > 0
|
||||
|
|
Loading…
Reference in a new issue