Skip to content

Commit

Permalink
Improve info message about mismatching Git remote URLs
Browse files Browse the repository at this point in the history
* Avoid using emoji because it looks broken when it cannot be displayed
* Avoid too long line
* Make the workding more concise
* See https://progress.opensuse.org/issues/169522
  • Loading branch information
Martchus committed Feb 3, 2025
1 parent ac30271 commit 80a1852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OpenQA/Task/Git/Clone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ sub _git_clone ($app, $job, $ctx, $path, $url) {

my $origin_url = $git->get_origin_url;
if ($url ne $origin_url) {
$ctx->info(
"Local checkout at $path has origin $origin_url but requesting to clone from $url. Be aware that the requested URL will not be cloned. This is fine.🔥"
);
$ctx->info(<<~"END_OF_ERROR_MESSAGE");
Local checkout at $path has origin $origin_url but requesting to clone from $url. The requested URL will not be cloned.
END_OF_ERROR_MESSAGE
return;
}
}
Expand Down

0 comments on commit 80a1852

Please sign in to comment.