mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
22eb76c6d0
shfmt -f script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
18 lines
278 B
Bash
Executable File
18 lines
278 B
Bash
Executable File
#!/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
|