mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-06 08:27:47 -05:00
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.
8 lines
188 B
Bash
Executable File
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
|