2013-09-03 18:37:54 +00:00
|
|
|
#!/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
|
|
|
|
|
2014-12-12 08:53:50 +00:00
|
|
|
# Add the git remote if it doesn't exist
|
|
|
|
git remote | grep heroku-docs || {
|
2015-07-10 22:34:23 +00:00
|
|
|
git remote add heroku-docs git@heroku.com:vagrantup-docs-2.git
|
2014-12-12 08:53:50 +00:00
|
|
|
}
|
|
|
|
|
2013-09-03 18:37:54 +00:00
|
|
|
# Push the subtree (force)
|
|
|
|
git push heroku-docs `git subtree split --prefix website/docs master`:master --force
|