mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-09-29 02:35:13 +08:00

The same logic was duplicated in three places. Factor it out so that we can add further fallbacks in a single place.
The same logic was duplicated in three places. Factor it out so that we can add further fallbacks in a single place.