Sha256: 2606e9e4bf7e7d864c75c06959314326532b8b937a26a3df6955fda951893440

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

#!/usr/bin/env sh
cmd=`which cruisestatus`

if [ -x "$cmd" ] && [ -f CRUISE_URL ]; then
  if $cmd -p `cat CRUISE_URL`; then
    echo "pulling"
    git pull --rebase
    git push
  else
    echo "aborted due to build failures"
    exit 1
  fi
else
  git pull --rebase
  git push
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-precommit-1.1.1 git-hooks/post-commit
git-precommit-1.1.0 git-hooks/post-commit