mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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>
20 lines
317 B
Bash
Executable File
20 lines
317 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
#
|
|
# make emacs/magit work, cf
|
|
# https://github.com/magit/magit/issues/3419
|
|
#
|
|
unset GIT_LITERAL_PATHSPECS
|
|
|
|
gitdir=$(git rev-parse --show-toplevel)
|
|
if [ $? -ne 0 ]; then
|
|
echo "git rev-parse --show-toplevel failed"
|
|
exit 1
|
|
fi
|
|
|
|
${gitdir}/script/git-hooks/check-trailing-whitespace || exit $?
|
|
|
|
exit 0
|