From 36e6c01d334c4db75018bc6a4a0bef726fd41ce4 Mon Sep 17 00:00:00 2001 From: claudiahdz Date: Mon, 20 Jul 2020 17:08:23 -0500 Subject: [PATCH] fix: git tag handling regression on shrinkwrap --- lib/install/deps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/deps.js b/lib/install/deps.js index 72c7192963000..960dd375d05bb 100644 --- a/lib/install/deps.js +++ b/lib/install/deps.js @@ -76,7 +76,7 @@ function doesChildVersionMatch (child, requested, requestor) { if (childReq.rawSpec === requested.rawSpec) return true if (childReq.type === requested.type) { if (childReq.saveSpec === requested.saveSpec) return true - if (childReq.fetchSpec === requested.fetchSpec) return true + if ((childReq.fetchSpec === requested.fetchSpec) && requested.type !== 'git') return true } } // If _requested didn't exist OR if it didn't match then we'll try using