From a92b0585c8d2438c45b25ff92185d263901f4d87 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 20 Oct 2016 00:21:14 +0100 Subject: [PATCH] archive_query: Support further arguments to methods Signed-off-by: Ian Jackson --- dgit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dgit b/dgit index 97cd684b..7060df27 100755 --- a/dgit +++ b/dgit @@ -962,13 +962,13 @@ sub must_getcwd () { our %rmad; -sub archive_query ($) { - my ($method) = @_; +sub archive_query ($;@) { + my ($method) = shift @_; my $query = access_cfg('archive-query','RETURN-UNDEF'); $query =~ s/^(\w+):// or badcfg "invalid archive-query method \`$query'"; my $proto = $1; my $data = $'; #'; - { no strict qw(refs); &{"${method}_${proto}"}($proto,$data); } + { no strict qw(refs); &{"${method}_${proto}"}($proto,$data,@_); } } sub pool_dsc_subpath ($$) { -- 2.30.2