#!/usr/bin/env bash

set -euxo pipefail

branch=$1

if [[ ! -d ord ]]; then
  git clone https://github.com/casey/ord.git
fi

cd ord

git fetch origin
git checkout -B $1
git reset --hard origin/$1
./deploy/setup
