Sha256: 8a38878a8e23fbb53d0850352e0c0aedc1a6710394c655353c969c70311d49b4

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

#!/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

if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
  unset GIT_DIR
  penchant gemfile remote --deployment
  GIT_DIR=$OLD_GIT_DIR
  git add Gemfile*
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
penchant-0.1.1 script/hooks/commit-msg