bigbinary / wheel

Don't reinvent the wheel for every new Rails project. Use sane Defaults.

Home Page:https://wheel-production.neetodeployapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix husky pre-commit error

abilash-sajeev opened this issue · comments

Husky pre-commit hook raises an error as shown below when files contain the "=======" pattern. Please find the images below for more information about this issue:

Error
Husky error

prevent_pushing_to_main.sh
prevent-pushing-to-main sh

rubocop.yml
rubocop yml

@yedhink

@udai1931 _a Take a look into this. Try cloning wheel, removing the .git folder, then reinitialize it as a git repo and then try committing and see whether you're able to reproduce the issue.

@yedhink I can reproduce the same, if we clone the wheel, delete .git, setup husky and then commit the code, same error occurs.