1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/script/git-hooks/pre-commit-hook

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
278 B
Plaintext
Raw Normal View History

#!/bin/sh
set -eu
gitdir=$(git rev-parse --show-toplevel)
if [ $? -ne 0 ]; then
echo "git rev-parse --show-toplevel failed"
exit 1
fi
if [ ! -f ${gitdir}/script/git-hooks/pre-commit-script ]; then
exit 0
fi
${gitdir}/script/git-hooks/pre-commit-script || exit $?
exit 0