show multiple tags

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2005-12-07 10:12:55 +01:00
parent 4cdd1f9031
commit 045e531a8f

View File

@ -912,9 +912,13 @@ sub read_info_ref {
open my $fd, "$projectroot/$project/info/refs" or return; open my $fd, "$projectroot/$project/info/refs" or return;
while (my $line = <$fd>) { while (my $line = <$fd>) {
if ($line =~ m/^([0-9a-fA-F]{40})\t.*\/([^\^]+)/) { if ($line =~ m/^([0-9a-fA-F]{40})\t.*\/([^\^]+)/) {
if (defined $refs{$1}) {
$refs{$1} .= " / $2";
} else {
$refs{$1} = $2; $refs{$1} = $2;
} }
} }
}
close $fd or return; close $fd or return;
return \%refs; return \%refs;
} }