mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 00:55:56 +00: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
|
@ -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…
Reference in a new issue