From 2e005de670b53de126b08c8a0b92358815b4962f Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 30 Jan 2026 10:38:10 -0500 Subject: [PATCH] ci --- script/beta.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/script/beta.ts b/script/beta.ts index 7a3dfcccf4..68cbd1097a 100755 --- a/script/beta.ts +++ b/script/beta.ts @@ -34,6 +34,18 @@ async function main() { throw new Error(`Failed to checkout beta branch: ${checkoutBeta.stderr}`) } + const shallow = await run(["git", "rev-parse", "--is-shallow-repository"]) + if (shallow.exitCode !== 0) { + throw new Error(`Failed to check shallow state: ${shallow.stderr}`) + } + if (shallow.stdout.trim() === "true") { + console.log("Unshallowing repository...") + const unshallow = await run(["git", "fetch", "--unshallow"]) + if (unshallow.exitCode !== 0) { + throw new Error(`Failed to unshallow repository: ${unshallow.stderr}`) + } + } + const applied: number[] = [] const skipped: Array<{ number: number; reason: string }> = []