PreCommitHookPlugin
PreCommitHookPlugin copied to clipboard
Exception while running pre-commit hook
Windows 10 Enterprise Version 1809
WebStorm 2019.2.3
Pre Commit Hook Plugin version 0.4.1
I had created "pre-commit-hook.bat" in the root of the project. When I was trying to commit I see this error
Exception while running pre-commit hook : Cannot run program "C:/Users/xxx/Documents/Projects/xxx/pre-commit-hook.bat" (in directory "C:\Users\xxx\Documents\Projects\xxx"): CreateProcess error=193, %1 is not a valid Win32 application Would you like to commit?
I think the error with the different symbol "/" and "" in the path.
I've written a full path to the "Settings -> Tools -> Pre Commit Hook -> Script path"
C:\Users\xxx\Documents\Projects\xxx\pre-commit-hook.bat
but it didn't fix the issue