mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
chore: generate
This commit is contained in:
parent
1b028d0632
commit
1d363fa19f
3 changed files with 11 additions and 61 deletions
|
|
@ -82,8 +82,11 @@ describeVcs("Vcs", () => {
|
|||
const pending = nextBranchUpdate(tmp.path)
|
||||
|
||||
const head = path.join(tmp.path, ".git", "HEAD")
|
||||
await fs.writeFile(head, `ref: refs/heads/${branch}
|
||||
`)
|
||||
await fs.writeFile(
|
||||
head,
|
||||
`ref: refs/heads/${branch}
|
||||
`,
|
||||
)
|
||||
|
||||
const updated = await pending
|
||||
expect(updated).toBe(branch)
|
||||
|
|
@ -99,8 +102,11 @@ describeVcs("Vcs", () => {
|
|||
const pending = nextBranchUpdate(tmp.path)
|
||||
|
||||
const head = path.join(tmp.path, ".git", "HEAD")
|
||||
await fs.writeFile(head, `ref: refs/heads/${branch}
|
||||
`)
|
||||
await fs.writeFile(
|
||||
head,
|
||||
`ref: refs/heads/${branch}
|
||||
`,
|
||||
)
|
||||
|
||||
await pending
|
||||
const current = await Vcs.branch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue