Skip to content

Commit

Permalink
fix: git tag handling regression on shrinkwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiahdz committed Jul 20, 2020
1 parent de51088 commit 36e6c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36e6c01

Please sign in to comment.