aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/pre-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh
index 8a98a0e..df003fe 100755
--- a/scripts/pre-commit.sh
+++ b/scripts/pre-commit.sh
@@ -8,7 +8,7 @@ if ! command -v git-clang-format &> /dev/null; then
exit 1
fi
-output="$( git clang-format --style file --diff )"
+output="$( git clang-format --style file --diff )" || true
ok1='no modified files to format'
ok2='clang-format did not modify any files'