Skip to content

Commit

Permalink
Merge branch 'jc/gitweb-fix-cloud-tag'
Browse files Browse the repository at this point in the history
* jc/gitweb-fix-cloud-tag:
  Fix reading of cloud tags
  • Loading branch information
Junio C Hamano committed Nov 5, 2008
2 parents efcce2e + eee0184 commit d95f91d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1957,14 +1957,18 @@ sub git_get_project_ctags {
my $ctags = {};

$git_dir = "$projectroot/$path";
foreach (<$git_dir/ctags/*>) {
unless (opendir D, "$git_dir/ctags") {
return $ctags;
}
foreach (grep { -f $_ } map { "$git_dir/ctags/$_" } readdir(D)) {
open CT, $_ or next;
my $val = <CT>;
chomp $val;
close CT;
my $ctag = $_; $ctag =~ s#.*/##;
$ctags->{$ctag} = $val;
}
closedir D;
$ctags;
}

Expand Down

0 comments on commit d95f91d

Please sign in to comment.