Git.pm: allow command_close_bidi_pipe to be called as method
commit1bc760aeb784701a702c0a306d464834e96b1f3d
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 7 Feb 2013 14:01:17 +0000 (7 15:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Feb 2013 18:37:13 +0000 (7 10:37 -0800)
treed10f9dc288b4b162c2e8710ca4ec1335261d8db0
parent2f19ada7f8a5bb768816cf7334f65ae0ab03c8a7
Git.pm: allow command_close_bidi_pipe to be called as method

The documentation of command_close_bidi_pipe() claims that it can
be called as a method, but it does not check whether the first
argument is $self or not assuming the latter.  Using _maybe_self()
fixes this.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Git.pm