Created
May 10, 2011 20:54
-
-
Save johnbintz/965364 to your computer and use it in GitHub Desktop.
A way to distribute git hooks with a Rails app and have them easily installed
This file contains hidden or 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
#!/bin/bash | |
rspec spec | |
if [ $? -ne 0 ]; then exit 1; fi |
This file contains hidden or 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
#!/bin/bash | |
for hook in script/hooks/* ; do | |
ln -sf $PWD/$hook .git/hooks/${hook##*/} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment