Conghao97's picture tcftrees's picture
ProgramGen release
d086025
Raw History Blame Contribute Delete
358 Bytes
#!/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
cp -r /solution/golden_assets/. . 2>/dev/null || true