GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/patches/[email protected] at dev · lzhshen/opencode 18 lines (18 loc) · 896 Bytes Copy path File metadata and controls18 lines (18 loc) · 896 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 diff --git a/lib/git.js b/lib/git.js index 000ee9fc..a2a6cbb7 100644 --- a/lib/git.js +++ b/lib/git.js @@ -254,8 +254,11 @@ class GitFetcher extends Fetcher { resolved: this.resolved, integrity: null, // it'll always be different, if we have one }).extract(tmp).then(() => handler(`${tmp}${this.spec.gitSubdir || ''}`), er => { - // fall back to ssh download if tarball fails - if (er.constructor.name.match(/^Http/)) { + // fall back to clone if the tarball download fails due to an + // HTTP error or if the response is not a valid tarball (e.g. + // a hosted provider returning an HTML sign-in page with 200) + if ((typeof er.statusCode === 'number' && er.statusCode >= 400) || + /^TAR_/.test(er.code)) { return this.#clone(handler, false) } else { throw er |
| 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. |