Commit Graph

3 Commits (1fbc9ecfa2858148b77d69eda2a8a56a4a39e3e5)

Author SHA1 Message Date
Michal Suchanek 9acb9377af Filter out gitea-specific variables in tests
There is no particular reason to set gitea variables globally.

Nonetheless, some misguided packagers set GITEA_CUSTOM in /etc/profile
breaking tests.

Fixes: go-gitea/gitea#36042
2025-12-05 10:17:29 +07:00
wxiaoguang e837c998b7
Fix context usages (#35348) 2025-08-27 11:00:01 +07:00
Lunny Xiao ae0af8ea5b
Refactor Git Attribute & performance optimization (#34154)
This PR moved git attributes related code to `modules/git/attribute` sub
package and moved language stats related code to
`modules/git/languagestats` sub package to make it easier to maintain.

And it also introduced a performance improvement which use the `git
check-attr --source` which can be run in a bare git repository so that
we don't need to create a git index file. The new parameter need a git
version >= 2.40 . If git version less than 2.40, it will fall back to
previous implementation.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: yp05327 <576951401@qq.com>
2025-04-11 21:41:29 +07:00