summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorChristian Jaeger <christian@jaeger.mine.nu>2008-10-18 20:25:12 +0200
committerJunio C Hamano <gitster@pobox.com>2008-10-19 14:46:33 -0700
commitd8b24b930f5b7150e63d989de39eb71bd37e8e63 (patch)
tree7280a7de62ae92e4177bd5113eb4db97996539fd /perl
parentf430c8e44d0548e844d817fc32be7c38b2b6856c (diff)
downloadgit-d8b24b930f5b7150e63d989de39eb71bd37e8e63.tar.gz
Git.pm: do not break inheritance
Make it possible to write subclasses of Git.pm Signed-off-by: Christian Jaeger <christian@jaeger.mine.nu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.pm3
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.