diff --git a/contrib/scripts/code-style-git-post-commit-hook b/contrib/scripts/code-style-git-post-commit-hook index 24c702c0c9..8d464842dc 100755 --- a/contrib/scripts/code-style-git-post-commit-hook +++ b/contrib/scripts/code-style-git-post-commit-hook @@ -17,5 +17,5 @@ CHANGED_FILES=$(git log --pretty='' --name-only -n1 | grep -E '\.c$|\.h$' | tr ' echo $CHANGED_FILES if [ -x "$FORMATTER" ] && [ ! -z "$CHANGED_FILES" ]; then - "$FORMATTER" "${CHANGED_FILES}" + "$FORMATTER" -n "${CHANGED_FILES}" fi