diff options
-rwxr-xr-x | git-hooks/clang-format-pre-commit | 4 |
1 files changed, 2 insertions, 2 deletions
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 |