File size: 358 Bytes
d086025
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/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