git-svn: remove leading slash when printing removed directories
[gitweb.git] / perl / Git.pm
index 2f6b59a43be3f2054934b1ec80031832e990fffb..c1729bafd20d38d56b3178356e50c72b2822f83c 100644 (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 {