Skip to content

Commit 4e50ced

Browse files
committed
chore(githooks): 🔧 update install-plugins command to include global flag
1 parent 8db1317 commit 4e50ced

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/githooks/_commit-msg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ -t 1 ]; then
77
fi
88

99
# Install commitizen plugins
10-
git hook run install-plugins -- '[.config.commitizen.path // "", .commitlint.extends // ""]'
10+
git hook run install-plugins -- -g '[.config.commitizen.path // "", .commitlint.extends // ""]'
1111

1212
# Apply commitlint rules to the latest commit message
1313
zz_log i "Applying commitlint rules to the latest commit..."

src/githooks/_pre-commit.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if git diff --name-only ${@:---cached} | grep -q "composer.json"; then
5959
fi
6060

6161
# Install Prettier plugins if they are not already installed
62-
git hook run install-plugins -- '.prettier.plugins//""'
62+
git hook run install-plugins -- -g '.prettier.plugins//""'
6363

6464
# Run pre-commit checks
6565
npx --yes git-precommit-checks

src/githooks/_prepare-commit-msg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -t 1 ]; then
88
fi
99

1010
# Install commitizen plugins
11-
git hook run install-plugins -- '[.config.commitizen.path // "", .commitlint.extends // ""]'
11+
git hook run install-plugins -- -g '[.config.commitizen.path // "", .commitlint.extends // ""]'
1212

1313

1414

src/githooks/devcontainer-feature.json

100644100755
File mode changed.

0 commit comments

Comments
 (0)