about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-23 02:40:20 +0000
committerEric Wong <e@80x24.org>2015-08-23 02:40:41 +0000
commitb2b04ab22fcf0557a9beff3950b5d29c75bb5546 (patch)
tree75418a4fbcf9e5f6360aa22086d2b2d3d56df65a /lib/PublicInbox/Feed.pm
parent8fef5b14a9c397eeece31c54c8f0d0c90a3ad2a6 (diff)
downloadpublic-inbox-b2b04ab22fcf0557a9beff3950b5d29c75bb5546.tar.gz
public-inbox git repositories require a "HEAD" ref to
function correctly anyways.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 8dd6d036..51216aaa 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -141,7 +141,7 @@ sub each_recent_blob {
         my $hex = '[a-f0-9]';
         my $addmsg = qr!^:000000 100644 \S+ \S+ A\t(${hex}{2}/${hex}{38})$!;
         my $delmsg = qr!^:100644 000000 \S+ \S+ D\t(${hex}{2}/${hex}{38})$!;
-        my $refhex = qr/${hex}{4,40}(?:~\d+)?/;
+        my $refhex = qr/(?:HEAD|${hex}{4,40})(?:~\d+)?/;
         my $cgi = $ctx->{cgi};
 
         # revision ranges may be specified