From 3f83bdde41c3595b26dec6661d4e41ba79d7d5af Mon Sep 17 00:00:00 2001 From: Richard Kovacs Date: Tue, 20 Sep 2022 11:23:40 +0200 Subject: [PATCH] Upgrade Husky and SKIP_GIT_PUSH_HOOK option (#176) --- .husky/hooks/pre-push | 2 ++ .task/fetch.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.husky/hooks/pre-push b/.husky/hooks/pre-push index f6d49c3..859c242 100755 --- a/.husky/hooks/pre-push +++ b/.husky/hooks/pre-push @@ -1,5 +1,7 @@ #!/usr/bin/env bash +if [[ "$SKIP_GIT_PUSH_HOOK" ]]; then exit 0; fi + set -e if git status --short | grep -qv "??"; then diff --git a/.task/fetch.yml b/.task/fetch.yml index fec84d7..982e9f3 100644 --- a/.task/fetch.yml +++ b/.task/fetch.yml @@ -8,7 +8,7 @@ vars: KUBECTL_VERSION: 1.21.1 KUTTL_VERSION: 0.12.1 ENVSUBST_VERSION: 1.2.0 - HUSKY_VERSION: 0.2.8 + HUSKY_VERSION: 0.2.14 CAP_ARCH: sh: uname tasks: @@ -98,4 +98,4 @@ tasks: - chmod +x ./bin/husky - ./bin/husky install status: - - test -f ./bin/husky \ No newline at end of file + - test -f ./bin/husky