Skip to content

Commit

Permalink
Merge 31bbc15 into 3a4334f
Browse files Browse the repository at this point in the history
  • Loading branch information
artemv committed Sep 26, 2017
2 parents 3a4334f + 31bbc15 commit 48a41a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/commits.js
Expand Up @@ -9,6 +9,11 @@ module.exports = function (config, cb) {
var options = config.options
var branch = options.branch
var from = lastRelease.gitHead
if (!from) {
from = config.lastRelease.version ? 'v' + config.lastRelease.version : false
console.warn('NPM registry does not contain "gitHead" in latest package version data. It\'s probably because ' +
'the publish happened outside of repository folder. Will try last version\'s Git tag instead: "' + from + '"')
}
var range = (from ? from + '..' : '') + 'HEAD'

if (!from) return extract()
Expand Down

0 comments on commit 48a41a2

Please sign in to comment.