Skip to content

Commit

Permalink
add some logging since I'm not sure what's happening
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jan 30, 2024
1 parent 9ff9a7f commit f08019b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Cli/ProjectCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ public function projectUpstreamUpdate($remote, $options = ['as' => 'default', 'p

// Source commits are not equal to existing commits, compare the releases.
if ($current === $latest) {
$this->logger->notice("{current} and {latest} tags match. Since the commit history differs, we need to do a commit-based update.", ['current' => $current, 'latest' => $latest]);
// Set $latest to the last commit hash in the $soucre_commits string from git if $current and $latest are the same version.
if (is_array($source_commits)) {
$latest_commit = end($source_commits);
Expand All @@ -580,6 +581,7 @@ public function projectUpstreamUpdate($remote, $options = ['as' => 'default', 'p
$latest_commit = preg_replace('/^([a-z0-9]+).*/', '$1', $latest_commit);
$update_parameters['meta']['commit-update'] = true;
$update_parameters['meta']['latest-commit'] = $latest_commit;
$this->logger->notice("Latest commit is {latest}",['latest' => $latest_commit]);
}

if (!$update_parameters['meta']['commit-update']) {
Expand Down

0 comments on commit f08019b

Please # to comment.