We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efcce2e + eee0184 commit d95f91dCopy full SHA for d95f91d
gitweb/gitweb.perl
@@ -1957,14 +1957,18 @@ sub git_get_project_ctags {
1957
my $ctags = {};
1958
1959
$git_dir = "$projectroot/$path";
1960
- foreach (<$git_dir/ctags/*>) {
+ unless (opendir D, "$git_dir/ctags") {
1961
+ return $ctags;
1962
+ }
1963
+ foreach (grep { -f $_ } map { "$git_dir/ctags/$_" } readdir(D)) {
1964
open CT, $_ or next;
1965
my $val = <CT>;
1966
chomp $val;
1967
close CT;
1968
my $ctag = $_; $ctag =~ s#.*/##;
1969
$ctags->{$ctag} = $val;
1970
}
1971
+ closedir D;
1972
$ctags;
1973
1974
0 commit comments