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