diff options
author | Thomas Haller <thaller@redhat.com> | 2021-09-16 08:46:17 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-09-16 08:47:38 +0200 |
commit | 1a56dcd4da9f93598b3e9b0336bac67f6b482e04 (patch) | |
tree | 83d14e7c5c0a566a18e469ae2068e8f1cac01c08 /contrib/scripts | |
parent | 17e4da8bf36205df773c0aff6fbceeea38dab3b5 (diff) | |
download | NetworkManager-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.
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-x | contrib/scripts/code-style-git-post-commit-hook | 2 |
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 |