Files
growstuff/script/pre-commit.sh
Miles Gould b173aad6b7 Added pre-commit hook script to run spec tests.
Based on instructions found at
http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/

I have no idea how portable this will be.
2012-09-10 15:29:49 +01:00

8 lines
188 B
Bash
Executable File

# Git pre-commit hook
# To install, run "rake hooks"
# Test the version that's about to be committed, stashing all unindexed changes
git stash -q --keep-index
rspec spec
git stash pop -q