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.
The pre-push hook in the
hooks
directory will runmake 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.