Make deployment script use a new 'BRANCH' variable
Pasting from Martin's comment here: #9 (comment 23794283)
There's a file in data/ called deployment, it's a bash environment variables file which contains locations like this:
#!/bin/bash export TARGET="/var/www/staging.inkscape.org/" export SOURCE="/srv/code/staging/" export ADDR="staging.inkscape.org"
I've changed staging and www to use /srv/code as the location for all the git repositories instead of /home/doctormo and /tmp which was kind of daft of me to do it that way.
So if this deployment script exists, we consider the code to be "on a live webserver" and the deploy script does different things, like pulling a different branch or considers this directory to not be a branch in the first place. If it doesn't exist, then we consider the code "in development" and the assumptions are all based on this directory being a repository and it not having any difference between the target and source.
I had to take out your git pull piece that forced it to use the master branch. But it'd be nice to have a BRANCH variable and have the deploy script automatically pull in the right code branch if it doesn't exist and keep it up to date. But this is a wishlist item.