Closed
Description
Version
3.0.0-beta.6
Reproduction link
https://github.com/noscript/vue-cli-pre-commit-bug
Steps to reproduce
- Create a project with
Lint and fix on commit
enabled - Make some changes to
src/App.vue
andsrc/views/Home.vue
- Using
git add -p
select changes only fromsrc/App.vue
- Commit with
git commit
What is expected?
Only changes from src/App.vue
committed.
What is actually happening?
Changes from src/views/Home.vue
get committed too.