Skip to content

Commit 1ed3b6a

Browse files
committed
fix: fallback to origin/master in case of missing gitHead
1 parent 14160e3 commit 1ed3b6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

getLastRelease.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ module.exports = function (pluginConfig, config, cb) {
1919
}
2020

2121
return defaultLastRelease(pluginConfig, config, function(err, res) {
22+
if (!res.gitHead) {
23+
res.gitHead = 'origin/master';
24+
}
25+
2226
if (distTag) {
2327
console.log(`Reverting back to ${oldTag} tag.`);
2428
config.npm.tag = oldTag;

0 commit comments

Comments
 (0)