about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseGitSummary.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitSummary.pm')
-rw-r--r--lib/PublicInbox/RepobrowseGitSummary.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepobrowseGitSummary.pm b/lib/PublicInbox/RepobrowseGitSummary.pm
index b6b96028..e7739ecd 100644
--- a/lib/PublicInbox/RepobrowseGitSummary.pm
+++ b/lib/PublicInbox/RepobrowseGitSummary.pm
@@ -48,7 +48,7 @@ sub for_each_ref {
                         '</pre><table>');
 
         my $rel = $req->{relcmd};
-        foreach (<$refs>) {
+        while (<$refs>) {
                 my ($ref, $type, $hex, $date, $s) = split(' ', $_, 5);
                 my $x = $ref eq $head_ref ? ' (HEAD)' : '';
                 $ref =~ s!\Arefs/(?:heads|tags)/!!;