From d028e95d66983b51e743c0ac553add5abc7f1881 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 25 Jan 2024 23:07:27 -0800 Subject: fix: local/post-receive.gentoo-commits avoid other warnings on warning Signed-off-by: Robin H. Johnson --- local/post-receive.gentoo-commits | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/post-receive.gentoo-commits b/local/post-receive.gentoo-commits index 954b416..85d019d 100755 --- a/local/post-receive.gentoo-commits +++ b/local/post-receive.gentoo-commits @@ -422,8 +422,8 @@ sub get_data($) { if($field eq "committer") { if (!$data{"committer_email"} || !$data{"committer_realname"} || !$data{"committer"}) { { - no warnings 'uninitialized'; - warn("Warning: falling back to legacy committer detection as no or not enough metadata was provided committer_email=$committer_email committer_realname=$committer_realname committer=$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"}"); } $data{"committer_email"} = pop(@fields); $data{"committer_email"} =~ s/[<>]//g; -- cgit v1.2.3-65-gdbad