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

Can vue-cli 3 remove completion git hook? #2182

Closed
twchn opened this issue Aug 13, 2018 · 1 comment
Closed

Can vue-cli 3 remove completion git hook? #2182

twchn opened this issue Aug 13, 2018 · 1 comment

Comments

@twchn
Copy link
Contributor

twchn commented Aug 13, 2018

What problem does this feature solve?

I use a Windows PC and set git config core.autocrlf=input and core.safecrlf=true . But on Windows, yarn will generate a CRLF style yarn.lock file by default, see this. So when I run vue create my-project, I will get a ERROR after the step 'Running completion hooks...', it shows:

Error: Command failed: git add -A
fatal: CRLF would be replaced by LF in yarn.lock.

I try to solve it but fail to find a way to set yarn.lock's eol to LF or make git convert CRLF to LF without converting LF to CRLF when checking out text files(If set core.autocrlf=true, it contradicts .editorconfig).
Therefore, I hope vue-cli will remove this hook or just jump this step when got a error.

What does the proposed API look like?

remove or modify completion git hook.

@yyx990803
Copy link
Member

vue create --no-git my-project

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