diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-08 16:50:25 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-08 16:50:25 -0800 |
commit | 2819854ec5013fc0958ea477fa49d53fc0faee80 (patch) | |
tree | 820f6da9fcd37798a7fc7de7179c21f8cc999eb1 | |
parent | 8b1981d32b41f1b4e26d8d96a3c6e63b9bc746b0 (diff) | |
parent | d8b24b930f5b7150e63d989de39eb71bd37e8e63 (diff) | |
download | git-2819854ec5013fc0958ea477fa49d53fc0faee80.tar.gz git-2819854ec5013fc0958ea477fa49d53fc0faee80.tar.xz |
Merge branch 'cj/maint-gitpm-fix-maybe-self' into maint
* 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 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. |