Skip to content

Commit

Permalink
git: override the locale to ensure consistent output
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 8, 2023
1 parent ecc5937 commit 7ce3bfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/git/gitsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ce3bfc

Please sign in to comment.