diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-01-25 23:16:35 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-01-25 23:16:35 -0800 |
commit | 14f513dd223342678c374ca112380938c5cf0c0f (patch) | |
tree | e7abd3a9b5073fe16e6acd3a166c9c03878393c5 | |
parent | fix: local/post-receive.gentoo-commits avoid other warnings on warning (diff) | |
download | githooks-14f513dd223342678c374ca112380938c5cf0c0f.tar.gz githooks-14f513dd223342678c374ca112380938c5cf0c0f.tar.bz2 githooks-14f513dd223342678c374ca112380938c5cf0c0f.zip |
fix: local/post-receive.gentoo-commits avoid other warnings on warning on warningsgithooks-20240126T071635Z
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | local/post-receive.gentoo-commits | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/local/post-receive.gentoo-commits b/local/post-receive.gentoo-commits index 85d019d..cc0a4fd 100755 --- a/local/post-receive.gentoo-commits +++ b/local/post-receive.gentoo-commits @@ -423,7 +423,13 @@ sub get_data($) { if (!$data{"committer_email"} || !$data{"committer_realname"} || !$data{"committer"}) { { no warnings; - warn("Warning: falling back to legacy committer detection as no or not enough metadata was provided committer_email=$data{"committer_email"} committer_realname=$data{"committer_realname"} committer=$data{"committer"}"); + warn( + sprintf("Warning: falling back to legacy committer detection as no or not enough metadata was provided committer_email='%s' committer_realname='%s' committer='%s'", + $data{"committer_email"}, + $data{"committer_realname"}, + $data{"committer"} + ) + ); } $data{"committer_email"} = pop(@fields); $data{"committer_email"} =~ s/[<>]//g; |