penchant/template/script/hooks/pre-commit

13 lines
152 B
Plaintext
Raw Normal View History

2011-07-14 19:50:51 +00:00
#!/bin/bash
2011-08-18 17:22:01 +00:00
OLD_GIT_DIR=$GIT_DIR
2011-07-14 20:51:54 +00:00
unset GIT_DIR
2011-08-18 17:22:01 +00:00
penchant gemfile remote
GIT_DIR=$OLD_GIT_DIR
2011-07-14 20:51:54 +00:00
2011-07-14 19:50:51 +00:00
bundle exec rake
2011-07-15 01:15:29 +00:00
R=$?
if [ $R -ne 0 ]; then exit $R; fi
2011-07-14 19:50:51 +00:00