GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci · cyrilmhansen/opencode@2e005de

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • script
    • beta.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎script/beta.ts‎

Copy file name to clipboardExpand all lines: script/beta.ts
+12Lines 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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.