X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=perl%2FGit.pm;h=ba94453781c98a97a95c65999873fc28b013340d;hb=a1a846a19e854a3b3baff8f55c039846880a2635;hp=6aab712e6ac6513b0b46958d93d536ef975276b4;hpb=2ba3d5d9bd47c42400049e81d0e1e94948112277;p=git.git diff --git a/perl/Git.pm b/perl/Git.pm index 6aab712e6..ba9445378 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -1203,8 +1203,7 @@ either version 2, or (at your option) any later version. # the method was called upon an instance and (undef, @args) if # it was called directly. sub _maybe_self { - # This breaks inheritance. Oh well. - ref $_[0] eq 'Git' ? @_ : (undef, @_); + UNIVERSAL::isa($_[0], 'Git') ? @_ : (undef, @_); } # Check if the command id is something reasonable.