提交 d8b24b93 编写于 作者: C Christian Jaeger 提交者: Junio C Hamano

Git.pm: do not break inheritance

Make it possible to write subclasses of Git.pm
Signed-off-by: NChristian Jaeger <christian@jaeger.mine.nu>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 f430c8e4
......@@ -1203,8 +1203,7 @@ =head1 COPYRIGHT
# 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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册