Skip to content

Commit 2138279

Browse files
authored
Include workaround for magit with explaining note
1 parent a84bdc8 commit 2138279

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ if(os.platform() === 'win32') {
102102
}
103103

104104
var precommitContent = '#!/usr/bin/env bash' + os.EOL
105+
+ '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
105106
+ hookRelativeUnixPath + os.EOL
106107
+ 'RESULT=$?' + os.EOL
107108
+ '[ $RESULT -ne 0 ] && exit 1' + os.EOL

0 commit comments

Comments
 (0)