#!/bin/bash

export GIT_WORK_TREE=/home/mh/git/vcsh/mrboot.checkout
if ! git diff --quiet; then
  echo >&2 "ERR: changes in tracked files. exiting"
  exit 1
fi

git ls-files -o
if git ls-files -o | grep > /dev/null .; then
  echo >&2 "ERR: untracked files present. exiting"
  exit 1
fi

git checkout -f master
