diff --git a/RoboFile.php b/RoboFile.php index f8c45ab85..313af019b 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -123,7 +123,9 @@ public static function buildLog($a, $b = 'HEAD', $with_head = true) { $startRef = $endRef; } - $log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head)); + if ($with_head) { + $log = array_merge($log, self::buildLogOneBump($startRef, null , $with_head)); + } return $log; } @@ -177,7 +179,7 @@ public static function buildLogOneBump($a, $b, $with_head = true) { $compare .= Git::getCurrentBranch(); } - if ($with_head) { + if ($with_head && $tag !== 'HEAD') { $log[] = ''; $log[] = '## [' . $tag . '](' . $compare . ') (' . $tagDate . ')'; }