Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git: override the locale to ensure consistent output #3598

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

crazy-max
Copy link
Member

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore; not sure if it's redundant, and already clear from the LC_ALL (which most people would understand does).

Suggested change
"LC_ALL=C", // Ensure consistent output.
"LC_ALL=C", // Ensure consistent, non-localized output.

@tonistiigi tonistiigi merged commit ad15d56 into moby:master Feb 11, 2023
@crazy-max crazy-max deleted the git-locale branch July 17, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants