#!/bin/sh

MODULE=$1
BRANCH=`cat .slite/branchname`

cd $MODULE

git branch "$BRANCH"
git checkout "$BRANCH"
git branch -D master
git pull origin "$BRANCH" 2> /dev/null   # Attempt to pull an existing branch if it exists, this lessens the chances of people losing work

