Commit graph

3 commits

Author SHA1 Message Date
Lunny Xiao 67f1b1a8f2 Fix locale-dependent git error handling (#1089)
Force the C locale for git subprocesses so git output used for error classification remains stable and parseable regardless of the user shell language.

Add a regression test that simulates a localized git "not a repository" error and verifies it is classified as ErrRepositoryNotExists.

Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-08-21 23:41:58 -07:00
Lunny Xiao d4545d8ed7 Add reply to code review (#978)
Follow https://gitea.com/gitea/go-sdk/pulls/784

Reviewed-on: https://gitea.com/gitea/tea/pulls/978
2026-06-26 21:40:31 +00:00
Lunny Xiao a664449282 Use git command instead of go git (#1005)
Remove go git library because it doesn't support sha256 repository but have an interface so that we could have other backend for the future.

Reviewed-on: https://gitea.com/gitea/tea/pulls/1005
Reviewed-by: Zettat123 <39446+zettat123@noreply.gitea.com>
2026-05-23 20:24:47 +00:00