mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-26 10:47:04 -06:00
`TestGitDiffTreeRespectsDiffOrderFile` fails on git older than 2.46, such as the 2.43 that Ubuntu 24.04 ships, even though Gitea supports git 2.34 and newer. Its `GlobalDiffOrderFile` subtest sets and removes the global `diff.orderFile` with `git config set` and `git config unset`, which were added in git 2.46, so older git stops it at the first call with `exit status 129 - usage: git config [<options>]`. The test now uses `git config --global` and `git config --global --unset`, the classic syntax that `modules/git/config.go` also uses. With git 2.34.1 and 2.43.0 the test failed before and passes now; git 2.56.1 passes either way. Follow-up to https://github.com/go-gitea/gitea/pull/38566 Assisted-by: Hermes Agent:claude-opus-5-5