#!/bin/bash # Harbor oracle: restore the original repository into the current task workspace. set -euo pipefail WORKDIR="${WORKDIR:-/workspace/repo}" mkdir -p "$WORKDIR" cd "$WORKDIR" if [ -s /solution/golden.patch ]; then git apply --check /solution/golden.patch git apply /solution/golden.patch fi