CaptainHook

7 Followers
1 Following
6 Posts
CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.
Homepagehttps://docs.captainhook.info/
GitHubhttps://github.com/captainhook-git/
Arrr! A new CaptainHook be settin’ sail! ⚓️
These last voyages be all ‘bout makin’ yer config as simple as swabbin’ the deck. Ye can now use mighty shorthands and toss all that redundant clutter overboard. And the commit message handling? Polished like a treasure chest o’ coin! 🪙
Hoist the Jolly Roger and give it a try, ye scallywags!
@Schrank @pollita @shochdoerfer @heiglandreas
Check captainhook.json config settings
Set `run-mode` to shell
Set `php-path` if necessary
Run `captainhook install -f`
Should work then 🙃
@Schrank @pollita @shochdoerfer @heiglandreas what does your captainhook.json run mode config say?
If it generates a php script you are using the legacy php run mode, I suggest you switch to `shell` this will make sure `captainhook install` generates a shell script, that calls PHP explicitly. Then you can provide a PHP executable path in the config section in your captainhook.json under `php-path` just in case your PHP executable is not in your $PATH.
@shochdoerfer @Schrank @heiglandreas
Did you install the Captain in local mode without having PHP installed on your host machine?
@bcremer thanks. I did this off course, to check if anybody pays attention 😉
It wasn’t the most obvious mistake no no no 🙃
ARRRRR

Ahoy maties, there are some organizational changes happening.
The GitHub org got renamed to CaptainHook-git. This was done so all repositories from ch-php and ch-go can be unified under one org. Sorry for any inconvenience that causes on your end.

Besides Hombrew installations (tap url changed) as a user you should not need to do anything. If you forked one of the CaptainHook repos be sure to update the repository url were needed.

Thank you all, fair winds and following seas!