Skip to content

Commit

Permalink
fix: (regression beta) faulty update for plugins with branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Oct 16, 2024
1 parent d3bf0ad commit e2c0e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function getGithubDefaultBranch(repo: string) {
if (!repo.includes('/'))
throw 'malformed repo'
const test = await httpString(`/~https://github.com/${repo}/archive/refs/heads/main.zip`, { method: 'HEAD' }).then(() => 1, (err) => {
if (err?.cause?.statusCode === 404)
if (err?.cause?.statusCode !== 404)
throw err
return 0
})
Expand Down

0 comments on commit e2c0e97

Please sign in to comment.