diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-10-14 15:57:48 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-10-14 14:08:18 +0000 |
commit | 1bf0cbf1e48bb768f50e93cf112d81d423322e39 (patch) | |
tree | 9ec2c6281fde317161c9987b18770b8d9446a5ed /git-hooks | |
parent | 1bb9f06b5dbec1c01ef9d4c8693dce56e93f70e6 (diff) | |
download | qtrepotools-1bf0cbf1e48bb768f50e93cf112d81d423322e39.tar.gz |
clang-format-pre-commit: Silence the noisy 'which' on Windows
Change-Id: I0fa8750ccff953dc690aee131f8b934704ad743d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'git-hooks')
-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 |