Created
January 25, 2013 11:24
-
-
Save mark-dizon/4633658 to your computer and use it in GitHub Desktop.
Remind user to run test suite before pushing code. Untested idea.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkpush(){ | |
echo "Did you run the test suite?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) git push; break;; | |
No ) echo "Better run the tests first." exit;; | |
esac | |
done | |
} | |
export -f checkpush | |
alias 'git push' = `checkpush` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment