Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 2e005de

Browse files
committed
ci
1 parent e80a99e commit 2e005de

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

script/beta.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ async function main() {
3434
throw new Error(`Failed to checkout beta branch: ${checkoutBeta.stderr}`)
3535
}
3636

37+
const shallow = await run(["git", "rev-parse", "--is-shallow-repository"])
38+
if (shallow.exitCode !== 0) {
39+
throw new Error(`Failed to check shallow state: ${shallow.stderr}`)
40+
}
41+
if (shallow.stdout.trim() === "true") {
42+
console.log("Unshallowing repository...")
43+
const unshallow = await run(["git", "fetch", "--unshallow"])
44+
if (unshallow.exitCode !== 0) {
45+
throw new Error(`Failed to unshallow repository: ${unshallow.stderr}`)
46+
}
47+
}
48+
3749
const applied: number[] = []
3850
const skipped: Array<{ number: number; reason: string }> = []
3951

0 commit comments

Comments
 (0)