Skip to content

Commit 36e6c01

Browse files
committed
fix: git tag handling regression on shrinkwrap
1 parent de51088 commit 36e6c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install/deps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function doesChildVersionMatch (child, requested, requestor) {
7676
if (childReq.rawSpec === requested.rawSpec) return true
7777
if (childReq.type === requested.type) {
7878
if (childReq.saveSpec === requested.saveSpec) return true
79-
if (childReq.fetchSpec === requested.fetchSpec) return true
79+
if ((childReq.fetchSpec === requested.fetchSpec) && requested.type !== 'git') return true
8080
}
8181
}
8282
// If _requested didn't exist OR if it didn't match then we'll try using

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy