From 21382798d4d2880ce4417ef0a091dd5f13bb21be Mon Sep 17 00:00:00 2001 From: Jack McCown Date: Sat, 4 Apr 2020 22:16:56 -0400 Subject: [PATCH] Include workaround for magit with explaining note --- install.js | 1 + 1 file changed, 1 insertion(+) 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