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

Make tests work with different default branch, or different locale #284

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

jdmansour
Copy link
Contributor

This is a fix for #283. If the user changed the default branch name on their system, the tests would fail.

At the same time, I noticed some tests fail on my laptop with a German OS (LANG=de_DE.UTF-8). This is because we parse the output of git, which is different if the locale is not set to English. (Now that I think about it, it doesn't just affect the tests and is an actual bug, but I still left it in this PR because it is just a one-liner.)

Without this, when a user changes the default branch name with
    git config --global init.defaultBranch main
the tests would fail.
Setting LANG=C so that on non-English systems, the
output of git is consistent.
@yuvipanda
Copy link
Contributor

One suggestion, happy to merge after that, @jdmansour.

@yuvipanda yuvipanda merged commit 8bf3bb1 into jupyterhub:main Jan 4, 2023
@yuvipanda
Copy link
Contributor

Thanks a lot, @jdmansour!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants