refactor: correct setup script
This commit is contained in:
parent
9113f0b7df
commit
57c010f4f2
|
|
@ -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():
|
||||
|
|
|
|||
11
setup.sh
11
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
|
||||
Loading…
Reference in New Issue