-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Issue / Use Case
Some developers in our company are using WSL but are using git from a windows context (e.g. by using git ui clients like SourceTree, TortoiseGit or from within an IDE like PHPStorm).
They usually have PHP installed inside WSL but not in windows.
Altough the plain git-hook-scripts are able to run, the execution of captainhook does not work.
Error messages like the following are shown when they are trying to commit:
/usr/bin/env: 'php': No such file or directory
Proposed Solution
Add an additional run-mode (like docker or local) called wsl which executes the hook in wsl context.
The existing run-exec exec setting could be used to further customize the wsl command (specify distributions etc.) used for the context switch.
sebastianfeldmann