Skip to content

Commit 52fe6ff

Browse files
committed
fix(changelog): fall back to master if the gitHead is undefined
This happens from time to time for no particular reason, and in that case, we need to use 'master' as a fallback
1 parent 12b865a commit 52fe6ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

formatPkg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function getGitHead(pkg, version) {
143143
if (pkg.versions && pkg.versions[version] && pkg.versions[version].gitHead) {
144144
return pkg.versions[version].gitHead;
145145
}
146-
return null;
146+
return 'master';
147147
}
148148

149149
function getVersions(cleaned) {

0 commit comments

Comments
 (0)