penchant/script/hooks/commit-msg
John Bintz 9e0bfa722e oops
2012-04-20 14:52:57 -04:00

17 lines
244 B
Bash
Executable File

#!/bin/bash
msg=$(cat $1)
OLD_GIT_DIR=$GIT_DIR
if [[ "${msg}" != *"[ci skip]"* ]]; then
if [ "$(penchant gemfile-env)" != "remote" ]; then
penchant gemfile remote
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi