-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler specs fail if git is configured with a different defaultBranch #11753
Comments
Do we have any version requirement on git? It turns out |
Should we do the opposite and query for |
Right, that is probably safer. I was initially under the impression that fetching unknown keys gave an error message, but that is not the case. |
I would rather prefer to eliminate influence of local configuration from the spec code instead of adapting to it. We're better off using the same well defined behaviour everyhwere. That means adding |
Another approach could be to ignore global and system configs by setting the env variables Ref: https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGGLOBAL |
That might even be better because other settings might influence git behaviour as well 👍 |
@straight-shoota Adding |
@lbguilherme perhaps even |
Unfortunately |
An alternative could be to simply checkout some directory with |
We should go with And it's a smaller diff and less introduced complexity than the current proposal in #11754 |
Bug Report
How to reproduce:
Have a .gitconfig that includes
In checked out crystal repo, run the compiler specs:
This results in 3 faileures:
All three are failing due to
master
being hardcoded.crystal -v
) and OS. If possible, try to see if the bug still reproduces on master.I had 1.3.1 checked out when I ran into the issue.
The text was updated successfully, but these errors were encountered: