diff options
| author | Dax Raad <[email protected]> | 2026-01-30 10:38:10 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-30 10:38:10 -0500 |
| commit | 2e005de670b53de126b08c8a0b92358815b4962f (patch) | |
| tree | 637b0d979bc3ff9a68c8a08df9d6a73e3e93d154 /script | |
| parent | e80a99e7bd458a68dbca2e24ee1e19c3d18f1d7f (diff) | |
| download | opencode-2e005de670b53de126b08c8a0b92358815b4962f.tar.gz opencode-2e005de670b53de126b08c8a0b92358815b4962f.zip | |
ci
Diffstat (limited to 'script')
| -rwxr-xr-x | script/beta.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/script/beta.ts b/script/beta.ts index 7a3dfcccf..68cbd1097 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 }> = [] |
