Skip to content

Commit d95f91d

Browse files
committed
Merge branch 'jc/gitweb-fix-cloud-tag'
* jc/gitweb-fix-cloud-tag: Fix reading of cloud tags
2 parents efcce2e + eee0184 commit d95f91d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gitweb/gitweb.perl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,14 +1957,18 @@ sub git_get_project_ctags {
19571957
my $ctags = {};
19581958

19591959
$git_dir = "$projectroot/$path";
1960-
foreach (<$git_dir/ctags/*>) {
1960+
unless (opendir D, "$git_dir/ctags") {
1961+
return $ctags;
1962+
}
1963+
foreach (grep { -f $_ } map { "$git_dir/ctags/$_" } readdir(D)) {
19611964
open CT, $_ or next;
19621965
my $val = <CT>;
19631966
chomp $val;
19641967
close CT;
19651968
my $ctag = $_; $ctag =~ s#.*/##;
19661969
$ctags->{$ctag} = $val;
19671970
}
1971+
closedir D;
19681972
$ctags;
19691973
}
19701974

0 commit comments

Comments
 (0)