Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

native-builder: honor NATIVE_GIT_BRANCH in preflight sync

+5 -4
+5 -4
oven/native-builder.mjs
··· 28 28 // fedac/native/ lives in the native-git repo on oven (polled by native-git-poller). 29 29 const NATIVE_DIR = 30 30 process.env.NATIVE_DIR || "/opt/oven/native-git/fedac/native"; 31 + const NATIVE_BRANCH = process.env.NATIVE_GIT_BRANCH || "main"; 31 32 32 33 // Kernel build cache: symlinked from fedac/native/build so kernel object 33 34 // files survive rsync --delete between commits (5-10x faster warm builds). ··· 291 292 addLogLine(job, "stdout", "Preflight: syncing native git checkout..."); 292 293 await runPhase(job, "preflight-sync", "bash", ["-lc", [ 293 294 "set -euo pipefail", 294 - "git fetch origin main --quiet || true", 295 - "git checkout -f main --quiet || true", 296 - "if git rev-parse --verify origin/main >/dev/null 2>&1; then", 297 - " git reset --hard origin/main --quiet", 295 + `git fetch origin ${NATIVE_BRANCH} --quiet || true`, 296 + `git checkout -f ${NATIVE_BRANCH} --quiet || true`, 297 + `if git rev-parse --verify origin/${NATIVE_BRANCH} >/dev/null 2>&1; then`, 298 + ` git reset --hard origin/${NATIVE_BRANCH} --quiet`, 298 299 "fi", 299 300 "git clean -fdq -- fedac/native", 300 301 ].join("\n")], repoDir);