-
Notifications
You must be signed in to change notification settings - Fork 6
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
Better in use on windows ? #3
Comments
Maybe you can use |
Sorry, I don't have a Windows. I can't check. 🙇 |
I solved by myself, just solve the path for posix, and windows git could also works very well(Use git for windows Here is my sample:
#!/bin/sh -e
echo $@
[ -f ./gradlew -o -f ./gradlew.bat ] && GRADLE=./gradlew || GRADLE=gradle
$GRADLE codenarcMain pmdMain spotbugsMain
#!/bin/sh -e
commitlint -x @commitlint/config-conventional -e $@
|
any news? |
Sorry, I'm too late. Maybe, I fixed this issue. But I'm not. I am not familiar with Windows. If you have a problem with Windows, I want you to send a pull request. It's very helpful. |
If I use powershell, git hook shows:
But
.git/hooks/pre-commit
is existed.And if I use Cygwin/Msys2/Mingw, git hook shows:
The text was updated successfully, but these errors were encountered: