Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit b9351d2

Browse files
committed
Fixing root reference.
1 parent 20ec435 commit b9351d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

template/scripts/git-hooks/commit-msg

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
# 15 characters.
77

88

9-
GIT_ROOT=$(git rev-parse --show-toplevel)
10-
PREFIX=$($GIT_ROOT/../../vendor/bin/drupal yaml:get:value $GIT_ROOT/project.yml project.prefix)
11-
9+
ROOT_DIR="$(pwd)/"
10+
PREFIX=$($ROOT_DIR/vendor/bin/drupal yaml:get:value $ROOT_DIR/project.yml project.prefix)
1211
regex="^${PREFIX}-[0-9]+(: )[^ ].{15,}\."
1312
if ! grep -iqE "$regex" "$1"; then
1413
echo "Invalid commit message. Commit messages must:"

0 commit comments

Comments
 (0)