From 1bf0cbf1e48bb768f50e93cf112d81d423322e39 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 14 Oct 2019 15:57:48 +0200 Subject: clang-format-pre-commit: Silence the noisy 'which' on Windows Change-Id: I0fa8750ccff953dc690aee131f8b934704ad743d Reviewed-by: Simon Hausmann --- git-hooks/clang-format-pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-hooks') diff --git a/git-hooks/clang-format-pre-commit b/git-hooks/clang-format-pre-commit index 9689d74..1f97e61 100755 --- a/git-hooks/clang-format-pre-commit +++ b/git-hooks/clang-format-pre-commit @@ -12,10 +12,10 @@ # mklink pre-commit ..\..\..\qtrepotools\git-hooks\clang-format-pre-commit # -CLANG_FORMAT=$(which git-clang-format) +CLANG_FORMAT=$(which git-clang-format 2>/dev/null) if [ -z "$CLANG_FORMAT" -a -d "$LLVM_INSTALL_DIR" ]; then export PATH=$PATH:$LLVM_INSTALL_DIR/bin - CLANG_FORMAT=$(which git-clang-format) + CLANG_FORMAT=$(which git-clang-format 2>/dev/null) fi if test -z "$CLANG_FORMAT"; then -- cgit v1.2.1