diff --git a/source/git/gitsource.go b/source/git/gitsource.go index dd35fe55f7c9..6344b2e81722 100644 --- a/source/git/gitsource.go +++ b/source/git/gitsource.go @@ -671,6 +671,7 @@ func git(ctx context.Context, dir, sshAuthSock, knownHosts string, args ...strin // "GIT_TRACE=1", "GIT_CONFIG_NOSYSTEM=1", // Disable reading from system gitconfig. "HOME=/dev/null", // Disable reading from user gitconfig. + "LC_ALL=C", // Ensure consistent output. } if sshAuthSock != "" { cmd.Env = append(cmd.Env, "SSH_AUTH_SOCK="+sshAuthSock)