Commit graph

4 commits

Author SHA1 Message Date
Lunny Xiao 168442467f refactor(git): simplify SSH command guard
Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-08-22 00:03:54 -07:00
Lunny Xiao 9fd40479b7 fix(git): preserve user SSH command for native git operations
tea previously set GIT_SSH_COMMAND=ssh for every SSH operation, even when
it had no identity or passphrase to inject. Let git fall back to its own
SSH command in that case so core.sshCommand, GIT_SSH_COMMAND, and the
normal OpenSSH known_hosts handling are respected.

Add regression coverage for ed25519 key parsing and CLI SSH auth setup.

Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-08-22 00:02:35 -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