#!/usr/bin/env bash # Row 139: apply build.patch to a detached worktree at base.txt and check the candidate manifest. # Usage: repro.sh set -euo pipefail HERE=$(cd "$(dirname "$0")" && pwd) REPO=$1 WT=$2 git -C "$REPO" worktree add -q --detach "$WT" "$(cat "$HERE/base.txt")" git -C "$WT" apply "$HERE/build.patch" (cd "$WT" && sha256sum -c --quiet "$HERE/candidate-manifest.sha256") && echo DIGESTS_OK