Version: PowerBuilder 2017 R3 Build 1858
When using the native Git integration of PowerBuilder, it seems to ignore the pre-commit git hook I've created.
pre-commit:
#!/bin/sh
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then
echo "You cannot commit directly to master branch"
exit 1
fi
exit 0
I'm able to execute this hook when attempting to commit via both Git Bash and Sourcetree. Is PowerBuilder just ignoring all githooks in addition to always committing and pushing to master?