We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e80a99e commit 2e005deCopy full SHA for 2e005de
1 file changed
script/beta.ts
@@ -34,6 +34,18 @@ async function main() {
34
throw new Error(`Failed to checkout beta branch: ${checkoutBeta.stderr}`)
35
}
36
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
+
49
const applied: number[] = []
50
const skipped: Array<{ number: number; reason: string }> = []
51
0 commit comments