aboutsummaryrefslogtreecommitdiffstats
path: root/Perl
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2018-06-05 23:44:47 +0100
committerSteve McIntyre <steve@einval.com>2018-06-05 23:44:47 +0100
commitfc69476ae0c61204a83b6a18f96f798684d8004d (patch)
tree4ba61ce12108d62b4dbb03412112c264a45897c8 /Perl
parent92a4991484d95f30deb7620d783378cff51041f6 (diff)
Fix up chained new() calls
Shift out the first arg so we don't pollute the namespace of the module underneath us.
Diffstat (limited to 'Perl')
-rw-r--r--Perl/Local/VCS.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Perl/Local/VCS.pm b/Perl/Local/VCS.pm
index 802688525a4..1dc5db0f0a3 100644
--- a/Perl/Local/VCS.pm
+++ b/Perl/Local/VCS.pm
@@ -44,12 +44,14 @@ sub new
if ( -d 'CVS' )
{
require Local::VCS_CVS;
+ shift;
return Local::VCS_CVS->new(@_);
}
# fall back to git
else
{
require Local::VCS_git;
+ shift;
return Local::VCS_git->new(@_);
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy