File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ COMMIT_MSG_FILE=$1
1313DIFF=$( git -c diff.mnemonicprefix=false -c diff.noprefix=false --no-pager diff --raw -r -p -m -M --full-index --no-color --staged | cat)
1414
1515# Grumphp env vars
16- $( ENV )
16+
1717export GRUMPHP_GIT_WORKING_DIR=" $( git rev-parse --show-toplevel) "
1818
1919# Run GrumPHP
20- (cd " ${HOOK_EXEC_PATH} " && printf " %s\n" " ${DIFF} " | $( EXEC_GRUMPHP_COMMAND ) $( HOOK_COMMAND ) " --git-user='$GIT_USER '" " --git-email='$GIT_EMAIL '" " $COMMIT_MSG_FILE " )
20+ (cd " ./ " && printf " %s\n" " ${DIFF} " | exec ' vendor/bin/grumphp.phar ' ' git:commit-msg ' " --git-user='$GIT_USER '" " --git-email='$GIT_EMAIL '" " $COMMIT_MSG_FILE " )
Original file line number Diff line number Diff line change 99DIFF=$( git -c diff.mnemonicprefix=false -c diff.noprefix=false --no-pager diff --raw -r -p -m -M --full-index --no-color --staged | cat)
1010
1111# Grumphp env vars
12- $( ENV )
12+
1313export GRUMPHP_GIT_WORKING_DIR=" $( git rev-parse --show-toplevel) "
1414
1515# Run GrumPHP
16- (cd " ${HOOK_EXEC_PATH} " && printf " %s\n" " ${DIFF} " | $( EXEC_GRUMPHP_COMMAND ) $( HOOK_COMMAND ) ' --skip-success-output' )
16+ (cd " ./ " && printf " %s\n" " ${DIFF} " | exec ' vendor/bin/grumphp.phar ' ' git:pre-commit ' ' --skip-success-output' )
You can’t perform that action at this time.
0 commit comments