forked from gitea/gitea

Co-authored-by: techknowlogick <techknowlogick@gitea.io> (cherry picked from commit 8770bceafa3844a97f35d3f8a35089438bf2f33b)
Co-authored-by: techknowlogick <techknowlogick@gitea.io> (cherry picked from commit 8770bceafa3844a97f35d3f8a35089438bf2f33b)