Skip to content

Commit

Permalink
gitTags: Remove text-matching error which does not work with non-Engl…
Browse files Browse the repository at this point in the history
…ish. Fixes #747.
  • Loading branch information
raineorshine committed Oct 20, 2020
1 parent 83872d0 commit 4ce5cb7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/package-managers/gitTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ const greatest = async (name, version, options) => {
// catch a variety of errors that occur on invalid or private repos
catch (e) {
print(options, `Invalid or Private repo ${name}: ${version}`, 'verbose')
if (/Repository not found|Could not read from remote repository.|Permission denied|not a git command|unable to find remote helper/i.test(e.stderr)) {
return null
}
else {
throw e
}
return null
}

// eslint-disable-next-line fp/no-mutating-methods
Expand Down

0 comments on commit 4ce5cb7

Please sign in to comment.