penchant/template/script/hooks/commit-msg

19 lines
287 B
Plaintext
Raw Normal View History

2012-04-20 15:26:27 +00:00
#!/bin/bash
msg=$(cat $1)
OLD_GIT_DIR=$GIT_DIR
if [[ "${msg}" != *"[ci skip]"* ]]; then
if [ "$(penchant gemfile-env)" != "remote" ]; then
2012-04-20 18:52:57 +00:00
unset GIT_DIR
2012-04-20 15:26:27 +00:00
penchant gemfile remote
2012-04-20 18:52:57 +00:00
GIT_DIR=$OLD_GIT_DIR
2012-04-20 15:26:27 +00:00
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi