Previous: , Up: FAQ - Issues and Errors   [Contents][Index]


A.2.12 My Git hooks work on the command line but not in Magit

When Magit calls git it adds a few global arguments including --literal-pathspecs and the git process started by Magit then passes that setting on to other git process it starts itself. This setting can be reverted in hook scripts using unset GIT_LITERAL_PATHSPECS.