aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-01-25 23:07:27 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2024-01-25 23:07:27 -0800
commitd028e95d66983b51e743c0ac553add5abc7f1881 (patch)
tree9c452a9d44394673ab65ec1484efcfac2325bc4d
parentfix: local/post-receive.gentoo-commits should log why the legacy committer de... (diff)
downloadgithooks-d028e95d66983b51e743c0ac553add5abc7f1881.tar.gz
githooks-d028e95d66983b51e743c0ac553add5abc7f1881.tar.bz2
githooks-d028e95d66983b51e743c0ac553add5abc7f1881.zip
fix: local/post-receive.gentoo-commits avoid other warnings on warninggithooks-20240126T070727Z
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xlocal/post-receive.gentoo-commits4
1 files 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;