Skip to content

Commit

Permalink
fix: fallback to origin/master in case of missing gitHead
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jun 27, 2017
1 parent 14160e3 commit 1ed3b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions getLastRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module.exports = function (pluginConfig, config, cb) {
}

return defaultLastRelease(pluginConfig, config, function(err, res) {
if (!res.gitHead) {
res.gitHead = 'origin/master';
}

if (distTag) {
console.log(`Reverting back to ${oldTag} tag.`);
config.npm.tag = oldTag;
Expand Down

0 comments on commit 1ed3b6a

Please sign in to comment.