Skip to content

Commit 864f907

Browse files
committed
fix(release): fix generated ChangeLog
1 parent 92d7c82 commit 864f907

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

RoboFile.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ public static function buildLog($a, $b = 'HEAD', $with_head = true) {
123123
$startRef = $endRef;
124124
}
125125

126-
$log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head));
126+
if ($with_head) {
127+
$log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head));
128+
}
127129

128130
return $log;
129131
}
@@ -177,7 +179,7 @@ public static function buildLogOneBump($a, $b, $with_head = true) {
177179
$compare .= Git::getCurrentBranch();
178180
}
179181

180-
if ($with_head) {
182+
if ($with_head && $tag !== 'HEAD') {
181183
$log[] = '<a name="' . $tag . '"></a>';
182184
$log[] = '## [' . $tag . '](' . $compare . ') (' . $tagDate . ')';
183185
}

0 commit comments

Comments
 (0)