mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
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>
This commit is contained in:
parent
5396370e5d
commit
b2870671bd
@ -4,7 +4,7 @@
|
|||||||
# Ensure we are at the project root
|
# Ensure we are at the project root
|
||||||
cd "$(dirname $0)"/..
|
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 chmod +x git-clang-format; then
|
||||||
if [[ "$1" == "--pre-commit" ]]; then
|
if [[ "$1" == "--pre-commit" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user