diff --git a/install.js b/install.js index e24fc0d..5db2ac7 100644 --- a/install.js +++ b/install.js @@ -102,6 +102,7 @@ if(os.platform() === 'win32') { } var precommitContent = '#!/usr/bin/env bash' + os.EOL + + 'unset GIT_LITERAL_PATHSPECS # NOTE: workaround for magit https://magit.vc/manual/magit/My-Git-hooks-work-on-the-command_002dline-but-not-inside-Magit.html ' + os.EOL + hookRelativeUnixPath + os.EOL + 'RESULT=$?' + os.EOL + '[ $RESULT -ne 0 ] && exit 1' + os.EOL