diff --git a/src/lib/Hydra/Plugin/GiteaStatus.pm b/src/lib/Hydra/Plugin/GiteaStatus.pm index 426c93f53..554bff897 100644 --- a/src/lib/Hydra/Plugin/GiteaStatus.pm +++ b/src/lib/Hydra/Plugin/GiteaStatus.pm @@ -63,9 +63,9 @@ sub common { my $accessToken = $self->{config}->{gitea_authorization}->{$repoOwner}; my $rev = $i->revision; - my $domain = URI->new($i->uri)->host; my $host; unless (defined $gitea_url) { + my $domain = URI->new($i->uri)->host; $host = "https://$domain"; } else { $host = $gitea_url->value;