1. Drew Buchanan
  2. PowerBuilder
  3. Thursday, 24 October 2019 18:04 PM UTC

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?



There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.