penchant/template/script/hooks/pre-commit

14 lines
251 B
Plaintext
Raw Normal View History

2011-07-14 19:50:51 +00:00
#!/bin/bash
if [ $(bundle exec rake -T preflight_check | wc -l) -eq 1 ]; then
bundle exec rake preflight_check
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi
2012-04-20 18:52:57 +00:00
unset GIT_DIR
penchant gemfile remote --deployment
GIT_DIR=$OLD_GIT_DIR
git add Gemfile*
2011-07-14 20:51:54 +00:00