gitea/modules/git/foreachref
Giteabot 4746291b08
Use refname:strip-2 instead of refname:short when syncing tags () ()
Backport  by @lunny

Fix  

Generally, `refname:short` should be equal to `refname:lstrip=2` except
`core.warnAmbiguousRefs is used to select the strict abbreviation mode.`

ref:
https://git-scm.com/docs/git-for-each-ref#Documentation/git-for-each-ref.txt-refname

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
format.go Implement FSFE REUSE for golang files ()
format_test.go Use refname:strip-2 instead of refname:short when syncing tags () ()
parser.go Implement FSFE REUSE for golang files ()
parser_test.go Replace `interface{}` with `any` ()