From 7ce3bfcca2867e1affb98845280c8d730695d8b6 Mon Sep 17 00:00:00 2001 From: CrazyMax <crazy-max@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:50:50 +0100 Subject: [PATCH] git: override the locale to ensure consistent output Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> --- source/git/gitsource.go | 1 + 1 file changed, 1 insertion(+) 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)