Update message on outdated precommit hook

Change-Id: I3afb93cced09df7844c0810438ee6d760f8237a5
Reviewed-on: https://code.wireshark.org/review/18960
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Matthieu Coudron 2016-11-26 19:18:37 +01:00 committed by Peter Wu
parent 99aacf8612
commit 13adab2118
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ cd "$(git rev-parse --show-toplevel)"
# (but only if invoked as hook, i.e. the commit ID is not given as argument).
if [ -z "$1" ] && [ -f "$hook_script" ]; then
if ! cmp -s "$hook_script" tools/pre-commit; then
echo "Pre-commit hook script is outdated, please update!"
echo "Pre-commit hook script is outdated, please update! (cp tools/pre-commit ${hook_script})"
fi
fi