summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2017-12-22 11:07:21 -0800
committerJunio C Hamano <gitster@pobox.com>2017-12-28 10:35:21 -0800
commit805a378649d69aa1503fd2a22afc5490c6e9c2d3 (patch)
tree65203302bb6907139c079a0b7765e24d77ada1a0 /perl
parent20d2a30f8ffe14deb09b4e6fc7b70ead53b315f0 (diff)
downloadgit-805a378649d69aa1503fd2a22afc5490c6e9c2d3.tar.gz
perl: avoid *.pmc and fix Error.pm further
The previous round tried to use *.pmc files but it confused RPM dependency analysis on some distros. Install them as plain vanilla *.pm files instead. Also "local @_" construct did not properly work when goto &sub is used until recent versions of Perl. Avoid it (and we do not need to localize it here anyway). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git/Error.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/Error.pm b/perl/Git/Error.pm
index 5874672150..09bbc97390 100644
--- a/perl/Git/Error.pm
+++ b/perl/Git/Error.pm
@@ -39,7 +39,7 @@ sub import {
require Error;
};
- local @_ = ($caller, @_);
+ unshift @_, $caller;
goto &Error::import;
}