Skip to content

Commit

Permalink
Merge pull request #3598 from crazy-max/git-locale
Browse files Browse the repository at this point in the history
git: override the locale to ensure consistent output
  • Loading branch information
tonistiigi authored Feb 11, 2023
2 parents 4828fe2 + 7ce3bfc commit ad15d56
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 ad15d56

Please sign in to comment.