#!/bin/bash

set -euo pipefail

# remove entire upstream dir
rm -r upstream
# refresh upstream
git clone https://github.com/golems/ach.git upstream
# remove conflicting .git dir
rm -rf upstream/.git
# apply local patch
patch -p3 < zoox-ach-patch.diff
