summaryrefslogtreecommitdiff
path: root/misc/hooks/pre-commit-clang-format
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-03-14 01:07:14 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-03-14 01:07:14 +0100
commitf4d46f6290b58a26192abdb9a05433bf72b8bcc0 (patch)
treea27e17c6d923329be808ea0dbf276a2967e5cc0e /misc/hooks/pre-commit-clang-format
parentdf4019c0dab46659588089f6e19c5cea0034817a (diff)
clang-format: Fix version number in hook warning
Diffstat (limited to 'misc/hooks/pre-commit-clang-format')
-rwxr-xr-xmisc/hooks/pre-commit-clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format
index 1cbc576565..7c6e5fcb42 100755
--- a/misc/hooks/pre-commit-clang-format
+++ b/misc/hooks/pre-commit-clang-format
@@ -103,7 +103,7 @@ CLANG_FORMAT_VERSION="$(clang-format --version | cut -d' ' -f3)"
CLANG_FORMAT_MAJOR="$(echo "$CLANG_FORMAT_VERSION" | cut -d'.' -f1)"
if [ "$CLANG_FORMAT_MAJOR" != "$RECOMMENDED_CLANG_FORMAT_MAJOR" ]; then
- echo "Warning: Your clang-format binary is the wrong version ($CLANG_FORMAT_VERSION, expected $CLANG_FORMAT_MAJOR.x.x)."
+ echo "Warning: Your clang-format binary is the wrong version ($CLANG_FORMAT_VERSION, expected $RECOMMENDED_CLANG_FORMAT_MAJOR.x.x)."
echo " Consider upgrading or downgrading clang-format as formatting may not be applied correctly."
fi