summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclang-tidy-diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy-diff.sh b/clang-tidy-diff.sh
index 931ad1a11..ece8776f9 100755
--- a/clang-tidy-diff.sh
+++ b/clang-tidy-diff.sh
@@ -8,6 +8,6 @@ then
echo "Fix clang-tidy errors before committing!"
echo
# Run clang-tidy once again to show the error
- git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1
+ git diff -U0 $MERGE_BASE | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null
exit 1
fi