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

Add autocrlf input #38

Closed
jednano opened this issue Sep 12, 2019 · 3 comments
Closed

Add autocrlf input #38

jednano opened this issue Sep 12, 2019 · 3 comments

Comments

@jednano
Copy link

jednano commented Sep 12, 2019

Can you please add an autocrlf input that runs git config --global core.autocrlf <value> before checkout?

My Windows builds are failing because of this. Being able to specify autocrlf: false would fix it!

@TingluoHuang
Copy link
Member

try:

- run: git config --global core.autocrlf false
- uses: actions/checkout@v1

@jednano
Copy link
Author

jednano commented Sep 12, 2019

Thanks! I also just noticed that git clone has a --config option that you can set. Perhaps that would be a good addition to this action?

Something like...

with:
  config:
    core:
      autocrlf: false

@jednano
Copy link
Author

jednano commented Sep 12, 2019

Your solution seems to have worked BTW.

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

No branches or pull requests

2 participants