Simple hook to rid of trouble
Hi folks. This is but a simple git hook to run a test in order to ensure you can push. It also ignores the vendor folder if you happen to have on in your directory. Edit the file under .git/hooks/pre-push.sample and add this at the end before the exit 0. go test $(go list ./... |grep -v vendor) RESULT=$? if [ $RESULT -ne 0 ]; then echo "Failed test run. Disallowing push....