wunderio / code-quality-old

0 stars 0 forks source link

Git issue when composer.json is not in root directory #13

Closed mgalang closed 5 years ago

mgalang commented 5 years ago

An error will occur if composer.json is not in root directory: Error: No git repo!

ragnarkurmwunder commented 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.

ragnarkurmwunder commented 5 years ago

Actually that concerned only install-update.sh, but not the hook itself.

ragnarkurmwunder commented 5 years ago

Ok, refactored pre-commit to work with arbitrary composer location. Composer location is derived from pre-commit hook link.