Closed mgalang closed 5 years ago
Should not happen anymore.
Composer can be now installed into arbitrary subfolder under git repo.
The test in tests/
confirms that.
Test needs to be used with -c arbitrary/sub/folder/path/for/composer
.
Actually that concerned only install-update.sh
, but not the hook itself.
Ok, refactored pre-commit to work with arbitrary composer location. Composer location is derived from pre-commit hook link.
An error will occur if composer.json is not in root directory:
Error: No git repo!