template/script/hooks/commit-msg in penchant-0.1.2 vs template/script/hooks/commit-msg in penchant-0.2.1
- old
+ new
@@ -4,21 +4,15 @@
OLD_GIT_DIR=$GIT_DIR
if [[ "${msg}" != *"[ci skip]"* ]]; then
if [ "$(penchant gemfile-env)" != "remote" ]; then
+ unset GIT_DIR
penchant gemfile remote
+ GIT_DIR=$OLD_GIT_DIR
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi
-if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
- unset GIT_DIR
- penchant gemfile remote --deployment
- GIT_DIR=$OLD_GIT_DIR
- git add Gemfile*
-fi
-
-exit 0