You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks a lot for creating and sharing this amazing package.
I got stuck with a little issue and want you to ask for assistance.
I'm running Composer on a windows box. I have installed brainmaestro/composer-git-hooks as recommended in the docs. If I run ./vendor/bin/cghooks pre-commit everything works fine and as expected. But if I want to commit via git command git commit -am 'Add feature xy.' I get an error:
error: cannot spawn .git/hooks/pre-commit: No such file or directory
Some research on this topic brought me to https://stackoverflow.com/a/20610055 with the suggestion to add the SHEBANG #!/bin/bash to the hook files. After adding this, everything works fine.
Is there a way (or could we have a way) to add this SHEBANG automatically to the hook files generated by cghooks?
Uh oh!
There was an error while loading. Please reload this page.
Hi,
thanks a lot for creating and sharing this amazing package.
I got stuck with a little issue and want you to ask for assistance.
I'm running Composer on a windows box. I have installed
brainmaestro/composer-git-hooks
as recommended in the docs. If I run./vendor/bin/cghooks pre-commit
everything works fine and as expected. But if I want to commit via git commandgit commit -am 'Add feature xy.'
I get an error:Some research on this topic brought me to https://stackoverflow.com/a/20610055 with the suggestion to add the SHEBANG
#!/bin/bash
to the hook files. After adding this, everything works fine.Is there a way (or could we have a way) to add this SHEBANG automatically to the hook files generated by
cghooks
?My Composer file is looking as followed:
The text was updated successfully, but these errors were encountered: