CVE-2023-3961:s3:torture: Add test SMB2-INVALID-PIPENAME to show we allow bad pipenam...
[Samba.git] / script / git-hooks / pre-commit-hook
blob1bcb000e91ec767b94257ea6637fd7878472ddff
1 #!/bin/sh
3 set -eu
5 gitdir=$(git rev-parse --show-toplevel)
6 if [ $? -ne 0 ]; then
7 echo "git rev-parse --show-toplevel failed"
8 exit 1
9 fi
11 if [ ! -f ${gitdir}/script/git-hooks/pre-commit-script ]; then
12 exit 0
15 ${gitdir}/script/git-hooks/pre-commit-script || exit $?
17 exit 0