mirror of
https://github.com/git/git.git
synced 2024-11-08 02:03:12 +01:00
Merge branch 'cj/maint-gitpm-fix-maybe-self'
* cj/maint-gitpm-fix-maybe-self: Git.pm: do not break inheritance
This commit is contained in:
commit
bfd59c493d
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue