diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-02 16:36:21 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-02 16:36:21 -0800 |
commit | bfd59c493d2be76adbc281df15a20aae766128fc (patch) | |
tree | 13b1a9582d21ce3da0c6192a871f79d53d3ca509 | |
parent | 6a509a6f7f38906996ac791449d5bcc2f32eef23 (diff) | |
parent | d8b24b930f5b7150e63d989de39eb71bd37e8e63 (diff) | |
download | git-bfd59c493d2be76adbc281df15a20aae766128fc.tar.gz |
Merge branch 'cj/maint-gitpm-fix-maybe-self'
* cj/maint-gitpm-fix-maybe-self:
Git.pm: do not break inheritance
-rw-r--r-- | perl/Git.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl/Git.pm b/perl/Git.pm index 6aab712e6a..ba94453781 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. |