-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows/WSL support #156
Comments
Thinking of it, probably the |
Thanks for the suggestion and sorry that it took a while, this somehow slipped under my radar. I will look into the |
This could be fixed quite similarly to what you are doing with docker, I think. To run a command in a WSL container, the command to execute would be: Ideally, a user could also configure the distribution (which WSL instance to run the command in). For this, you need to supply the |
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
(likedocker
orlocal
) calledwsl
which executes the hook in wsl context.The existing
run-exec
exec setting could be used to further customize thewsl
command (specify distributions etc.) used for the context switch.The text was updated successfully, but these errors were encountered: