From 2b4c95630ee1f4f4178769ce10b304431aa8271b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Sep 2013 13:49:27 -0700 Subject: [PATCH] scripts: website_push_www --- scripts/website_push_www.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/website_push_www.sh diff --git a/scripts/website_push_www.sh b/scripts/website_push_www.sh new file mode 100755 index 000000000..9e8bff265 --- /dev/null +++ b/scripts/website_push_www.sh @@ -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