qingyi-yan / POET

Other
1 stars 2 forks source link

Automate hooks configuration during installation #30

Open yimjay opened 1 year ago

yimjay commented 1 year ago

The pre-push hook in the hooks directory will run make check and only push to this repository if all tests pass. However, the user needs to manually update their local machine's git to use the git hooks located in this repository instead of their local default with: find .git/hooks -type l -exec rm {} \; find hooks -type f -exec ln -sf ../../{} .git/hooks/ \;

This enhancement issue is to propose adding a step during POET install/build to run these scripts so the user doesn't have to manually update their git hooks configuration.