PreCommitHookPlugin
PreCommitHookPlugin copied to clipboard
Won't fail with relative path
The plugin won't stop the commit if the path isn't set to a custom path (Ubuntu 18.10, Android Studio 3.2.1) My test-script always exits with 1. If I leave the plugin on the standard settings (pre-commit-hook.sh), Android Studio commits normally. If I set the settings to a custom path (/home/name/project-root/pre-commit-hook.sh), the hooks fail and the commit is aborted. If I point to a non-existing file (/home/name/pre-commit-hook.sh), the tool shows a dialog that informs me that the file doesn't exist.