Files
opentf/scripts/website_push.sh
Paul Hinze 3080c827d8 scripts: change website_push to push from HEAD
so it works properly on release branches
2015-07-28 18:38:59 -05:00

13 lines
356 B
Bash
Executable File

#!/usr/bin/env bash
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that directory
cd $DIR
# Push the subtree (force)
git push heroku `git subtree split --prefix website HEAD`:master --force