From 4ce5cb7ed05fa6d9789f8f6eb480effe82d52071 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Tue, 20 Oct 2020 12:50:59 -0600 Subject: [PATCH] gitTags: Remove text-matching error which does not work with non-English. Fixes #747. --- lib/package-managers/gitTags.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/package-managers/gitTags.js b/lib/package-managers/gitTags.js index 134e0b53..a5b226c1 100644 --- a/lib/package-managers/gitTags.js +++ b/lib/package-managers/gitTags.js @@ -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