thomasthiebaud / poetry-githooks

Simple git hooks with poetry
MIT License
15 stars 3 forks source link

Add option to explicitly define root git directory #10

Open AaRaBiNoZa opened 2 years ago

AaRaBiNoZa commented 2 years ago

It is a PR for issue #8. I needed to add cd {settings.BASE_DIR} before running the hook, since git changes hooks' working directory to the root of the working tree - if it is equal to BASE_DIR, then it's ok, but if not, then we must explicitly change the directory.