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

No longer depend of external git user config #536

Merged

Conversation

luislavena
Copy link
Contributor

Some Git-related tests required external configuration of email and name. This forced tweaks in CI and other environments to have those set globally before running tests.

This change makes this self-contained: Git repositories created part of the test suite are going to automatically set a default email and name.

Note: this might look silly, but removes the need to set that up when running the specs in a controlled container environment (and not a development one) and has no impact on existing CI or others running it.

Thank you.
❤️ ❤️ ❤️

Some Git-related tests required external configuration of email and
name. This forced tweaks in CI and other environments to have those set
globally before running tests.

This change makes this self-contained: Git repositories created part
of the test suite are going to automatically set a default email and
name.
spec/support/factories.cr Outdated Show resolved Hide resolved
Use `git_path` helper instead of `Process.quote` as was incorrect in that
context.

Looking at other examples it appears to be the correct method to use,
even when dealing with nested `Dir.cd` operations.
@straight-shoota straight-shoota added this to the v0.17.0 milestone Dec 16, 2021
@straight-shoota straight-shoota merged commit e0ff261 into crystal-lang:master Dec 20, 2021
@luislavena luislavena deleted the avoid-external-git-config branch March 15, 2022 18:39
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