penchant/template/script/hooks/pre-commit

16 lines
244 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
if [ "$(penchant gemfile-env)" != "remote" ]; then
2011-08-18 18:53:55 +00:00
unset GIT_DIR
2011-10-13 14:01:18 +00:00
penchant gemfile remote --deployment
2011-08-18 18:53:55 +00:00
GIT_DIR=$OLD_GIT_DIR
2011-08-18 21:37:54 +00:00
git add Gemfile*
2011-08-18 18:53:55 +00:00
fi
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