Skip to content

Commit 30b6d34

Browse files
author
Jonathan Visser
committed
Add return []; when git log fails
1 parent c4a8224 commit 30b6d34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Stdlib/ReleaseInfo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private function branchList(): array
5858
try {
5959
$gitLogOutput = runLocally('git log --merges -n 1');
6060
} catch (RunException $e) {
61+
return [];
6162
}
6263

6364
if (!preg_match(self::MERGE_PATTERN, $gitLogOutput, $matches)) {

0 commit comments

Comments
 (0)