Move Workaround for #12675 into it's own function (#14922)
Move Workaround for #12675 into it's own function (#14922)

* Move Workatround for #12675 into it's own function

* use more reliable solution (as tea do)
go-gitea/gitea,cez81/gitea,cez81/gitea,go-gitea/gitea,vdbt/gitea,cez81/gitea,vdbt/gitea,go-gitea/gitea