diff --git a/src/lib/Hydra/Plugin/GitInput.pm b/src/lib/Hydra/Plugin/GitInput.pm index 275a6f8f..94dad9c3 100644 --- a/src/lib/Hydra/Plugin/GitInput.pm +++ b/src/lib/Hydra/Plugin/GitInput.pm @@ -6,6 +6,7 @@ use Digest::SHA qw(sha256_hex); use File::Path; use Hydra::Helper::Nix; use Nix::Store; +use Encode; sub supportedInputTypes { my ($self, $inputTypes) = @_; @@ -162,7 +163,7 @@ sub getCommits { my $res = []; foreach my $line (split /\n/, $out) { my ($revision, $author, $email, $date) = split "\t", $line; - push @$res, { revision => $revision, author => $author, email => $email }; + push @$res, { revision => $revision, author => decode("utf-8", $author), email => $email }; } return $res;