Browse Source

formatcheck: Use a shorter timeout

If the internet connection is down, the default timeout of wget is
unreasonably long. If formatcheck is used as a pre-commit hook, this
blocks usage of git for a long time although we probably have
git-clang-format available.

Signed-off-by: Kai Krakow <kai@kaishome.de>
Kai Krakow 6 years ago
parent
commit
b2870671bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/format-check.sh

+ 1 - 1
scripts/format-check.sh

@@ -4,7 +4,7 @@
 # Ensure we are at the project root
 cd "$(dirname $0)"/..
 
-wget -Nq https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format
+wget -Nq -T3 -t1 https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format
 
 if chmod +x git-clang-format; then
   if [[ "$1" == "--pre-commit" ]]; then