2015-07-22 02:06:54 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-04-10 00:19:42 +00:00
|
|
|
|
|
|
|
# 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 master`:master --force
|