penchant/template/script/hooks/pre-commit

13 lines
152 B
Bash
Executable File

#!/bin/bash
OLD_GIT_DIR=$GIT_DIR
unset GIT_DIR
penchant gemfile remote
GIT_DIR=$OLD_GIT_DIR
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi