[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #110871] cgit sometimes renders commits as "no repositories found"
From: |
Ineiev |
Subject: |
[sr #110871] cgit sometimes renders commits as "no repositories found" |
Date: |
Fri, 21 Apr 2023 06:03:23 -0400 (EDT) |
Update of sr #110871 (project administration):
Status: Need Info => In Progress
Assigned to: None => ineiev
_______________________________________________________
Follow-up Comment #4:
The list of repos for cgit is updated on 2,32 on vcs2, and it does look like
that the updating isn't practically atomic:
open(OUT, ">/srv/git/cgitrepos") or die $!;
foreach my $line (@db) {
my ($unix_group_name, $group_name, $dir_git) = @{$line};
my $path = $dir_git;
$path =~ s/%PROJECT/$unix_group_name/;
next if (! -e $path); # not replicated yet
my $desc = '';
open(DESC, "<$path/description") or warn $!;
$desc = <DESC>;
close(DESC);
chomp($desc);
$desc = '' if $desc =~ /Unnamed repository/;
...
print OUT <<EOF;
repo.url=$unix_group_name/$subrepo
repo.path=$subrepos_dir/$subrepo
repo.desc=$desc
repo.readme=README.html
repo.owner=$gitweb_owner
EOF
}
}
}
close(OUT);
I'll try to use a temporary file.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/support/?110871>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/