From 57c010f4f21e06cdc6ba94de128f9e95a773dd94 Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 7 Jan 2021 18:46:47 +0300 Subject: [PATCH] refactor: correct setup script --- .githooks/prepare-commit-msg | 1 - setup.sh | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg index a64fc023..df9f994b 100755 --- a/.githooks/prepare-commit-msg +++ b/.githooks/prepare-commit-msg @@ -55,7 +55,6 @@ def print_error_message(): print(colored_breaking_changes_message) print_pattern(breaking_changes_commit_pattern) - print_available_commit_types() def print_available_commit_types(): diff --git a/setup.sh b/setup.sh index 7e942a67..36675721 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,4 @@ -# Git version >= 2.9 +# Enable githooks git config core.hooksPath .githooks - -# Git version < 2.9 -HOOKS_FOLDER=.git/hooks - -if [ ! -d $HOOKS_FOLDER ]; then - mkdir $HOOKS_FOLDER -fi - -find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; chmod +x .githooks \ No newline at end of file