Sha256: dd57e8976b0b455de3b6d40bc1cc3b75d65406c9088d2c2b8917ba3044abea9d

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

echo "-----> Ensuring everything is pushed to git"
if \[ \$\(git branch --list master \| wc -l\) -eq 0 \]; then
  echo "! Branch master doesn't exist"
  exit 1
fi

if \[ \$\(git branch -r --list origin/master \| wc -l\) -eq 0 \]; then
  echo "! Branch origin/master doesn't exist"
  exit 1
fi

if \[ \$\(git log origin/master..master \| wc -l\) -ne 0 \]; then
  echo "! Your branch master needs to be pushed to origin before deploying"
  exit 1
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mina-1.2.5 spec/support/outputs/git_ensure_pushed.txt