diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-06 17:23:37 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-06 17:23:37 (GMT) |
commit | b16488eb3cf8b39e6a4ee941295a4aac45bc073a (patch) | |
tree | 5a05f708720f414a8cd49962c218352ec8f81bbb /t | |
parent | 00bcc35081f6fd247fa4024bd256c1ab4082f9bf (diff) | |
parent | 4a543708cc1dd9bdc1e359078118a5279a2cfe11 (diff) | |
download | git-b16488eb3cf8b39e6a4ee941295a4aac45bc073a.zip git-b16488eb3cf8b39e6a4ee941295a4aac45bc073a.tar.gz git-b16488eb3cf8b39e6a4ee941295a4aac45bc073a.tar.bz2 |
Merge branch 'cc/git-packet-pm'
Code clean-up.
* cc/git-packet-pm:
Git/Packet.pm: use 'if' instead of 'unless'
Git/Packet: clarify that packet_required_key_val_read allows EOF
Diffstat (limited to 't')
-rw-r--r-- | t/t0021/rot13-filter.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0021/rot13-filter.pl b/t/t0021/rot13-filter.pl index 6fd7fa4..f167885 100644 --- a/t/t0021/rot13-filter.pl +++ b/t/t0021/rot13-filter.pl @@ -70,7 +70,7 @@ print $debug "init handshake complete\n"; $debug->flush(); while (1) { - my ( $res, $command ) = packet_required_key_val_read("command"); + my ( $res, $command ) = packet_key_val_read("command"); if ( $res == -1 ) { print $debug "STOP\n"; exit(); @@ -106,7 +106,7 @@ while (1) { packet_txt_write("status=success"); packet_flush(); } else { - my ( $res, $pathname ) = packet_required_key_val_read("pathname"); + my ( $res, $pathname ) = packet_key_val_read("pathname"); if ( $res == -1 ) { die "unexpected EOF while expecting pathname"; } |