Skip to content

Commit

Permalink
fix(changelog): fall back to master if the gitHead is undefined
Browse files Browse the repository at this point in the history
This happens from time to time for no particular reason, and in that case, we need to use 'master' as a fallback
  • Loading branch information
Haroenv committed May 24, 2017
1 parent 12b865a commit 52fe6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatPkg.js
Expand Up @@ -143,7 +143,7 @@ function getGitHead(pkg, version) {
if (pkg.versions && pkg.versions[version] && pkg.versions[version].gitHead) {
return pkg.versions[version].gitHead;
}
return null;
return 'master';
}

function getVersions(cleaned) {
Expand Down

0 comments on commit 52fe6ff

Please sign in to comment.