summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-09-16 08:46:17 +0200
committerThomas Haller <thaller@redhat.com>2021-09-16 08:47:38 +0200
commit1a56dcd4da9f93598b3e9b0336bac67f6b482e04 (patch)
tree83d14e7c5c0a566a18e469ae2068e8f1cac01c08
parent17e4da8bf36205df773c0aff6fbceeea38dab3b5 (diff)
downloadNetworkManager-1a56dcd4da9f93598b3e9b0336bac67f6b482e04.tar.gz
contrib: explicitly pass "-n" to "nm-code-format.sh" in "code-style-git-post-commit-hook"
"nm-code-format.sh" is going to change the default behavior from "-n" to "-i", that is, from check-only to reformat. Explicitly pass "-n" where we want it.
-rwxr-xr-xcontrib/scripts/code-style-git-post-commit-hook2
1 files changed, 1 insertions, 1 deletions
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