Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/gitweb-fix-cloud-tag'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Nov 2008 19:34:28 +0000
(11:34 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Nov 2008 19:34:28 +0000
(11:34 -0800)
* jc/gitweb-fix-cloud-tag:
Fix reading of cloud tags
gitweb/gitweb.perl
patch
|
blob
|
history
raw
(from parent 1:
efcce2e
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 63c793ec398f0c378c3e3ec94b2d5675bdff418e..9d1af7e55703c87168e949c285a97fbce867d3e5 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-1957,7
+1957,10
@@
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;
@@
-1965,6
+1968,7
@@
sub git_get_project_ctags {
my $ctag = $_; $ctag =~ s#.*/##;
$ctags->{$ctag} = $val;
}
+ closedir D;
$ctags;
}