scripts: website_push_www

This commit is contained in:
Mitchell Hashimoto 2013-09-03 13:49:27 -07:00
parent cef35c7e5a
commit 2b4c95630e
1 changed files with 12 additions and 0 deletions

12
scripts/website_push_www.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/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-www `git subtree split --prefix website/www master`:master --force