branch="$(git rev-parse --abbrev-ref HEAD)"

if [ "$branch" = "main" ]; then
  echo "👮‍ You can't commit directly to $branch branch"
  exit 1
fi

rr test:static --fix-staged
git update-index --again
