Skip to content

Trim the output of git-config #652

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

Merged
merged 2 commits into from
Mar 10, 2023
Merged

Trim the output of git-config #652

merged 2 commits into from
Mar 10, 2023

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Mar 9, 2023

#647 reads the output of git config --global core.autocrlf in order to restore it afterwards. It wasn't trimming the newline from stdout, so if the workflow had changed the setting then it was restored with a \n character at the end which results in a corrupt git configuration.

@dra27 dra27 linked an issue Mar 9, 2023 that may be closed by this pull request
@dra27
Copy link
Member Author

dra27 commented Mar 9, 2023

@cknitt - I've tested with this PR on my fork of rescript-compiler which appears to be working. Once this is merged and released, you should be able to revert rescript-lang/rescript#6034.

@cknitt
Copy link

cknitt commented Mar 9, 2023

Thanks a lot for your work @dra27!

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@smorimoto smorimoto merged commit ed32b9f into ocaml:master Mar 10, 2023
@smorimoto
Copy link
Member

smorimoto commented Mar 10, 2023

Shipped in v2.0.12 (Of course in v2)!
https://github.com/ocaml/setup-ocaml/releases/tag/v2.0.12

@dra27 dra27 deleted the fix-git-config branch March 10, 2023 07:57
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.

Bring back Cygwin git (optionally?)
3 participants