mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-26 10:47:04 -06:00
`gitcmd.IsErrorExitCode` now matches any error exposing `ExitCode() int`, which `*exec.ExitError` does, instead of asserting the concrete type, and `Commit.HasPreviousCommit` uses it instead of its own type assertion. Exit code checks should not depend on how a command was run, so a command runner other than `os/exec` can report exit codes without touching callers. No behavior change. Assisted-by: Codet:claude Assisted-by: Claude Code:claude-opus-5-5 --------- Co-authored-by: silverwind <me@silverwind.io>