Cleanup uninitialized value in chomp

which happens if you use ActiveState Perl and a
pipe workaround specially for it.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Alex Riesen 2007-01-22 15:58:03 +01:00 committed by Junio C Hamano
parent bed118d6bb
commit 67e4baf826

View file

@ -275,7 +275,7 @@ sub command {
} else {
my @lines = <$fh>;
chomp @lines;
defined and chomp for @lines;
try {
_cmd_close($fh, $ctx);
} catch Git::Error::Command with {