From bba0568196034a319fc8b57ab9c3ee15ac2b55e7 Mon Sep 17 00:00:00 2001 From: DigiLive Date: Sun, 2 Oct 2022 22:24:53 +0200 Subject: [PATCH] Fix tag date Tags got the date of the oldest commit, while this should be the date of the newest commit. --- src/RepoHandler/RepoHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RepoHandler/RepoHandler.php b/src/RepoHandler/RepoHandler.php index 36ef46f..2f83311 100644 --- a/src/RepoHandler/RepoHandler.php +++ b/src/RepoHandler/RepoHandler.php @@ -238,7 +238,7 @@ public function fetchCommitData(bool $refresh): array continue; } - $commitData[$tag]['date'] = $line[0]; + $commitData[$tag]['date'] = $commitData[$tag]['date'] ?? $line[0]; $commitData[$tag]['titles'][] = $line[1]; $commitData[$tag]['hashes'][] = $line[2]; }