Closed matthijs-va closed 3 years ago
Both git hooks fail if there's a whitespace in the path. Running GrumPHP directly doesn't give any issues.
.git/hooks/pre-commit: 13: export: packages/Robo: bad variable name
The problem seems to be fixed when wrapping the git rev-parse command in quotes:
git rev-parse
export GRUMPHP_GIT_WORKING_DIR="$(git rev-parse --show-toplevel)"
Thanks for reporting! Ah yes... that makes sense...
Care to create a PR for this?
Both git hooks fail if there's a whitespace in the path. Running GrumPHP directly doesn't give any issues.
The problem seems to be fixed when wrapping the
git rev-parse
command in quotes: