On Thu, Sep 16, 2010 at 09:31, Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> wrote: > +sub git_get_remotes { > + my ($limit) = @_; > + open my $fd, '-|' , git_cmd(), 'remote'; > + return () unless $fd; > + my @remotes = map { chomp ; $_ } <$fd>; > + close $fd or return (); return unless $fd; chomp(my @remotes = <$fd>); close $fd or return; -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html