mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 13:40:39 +01:00
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.
This commit is contained in:
parent
17e4da8bf3
commit
1a56dcd4da
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue