author | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Oct 2008 04:27:12 +0000 (21:27 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Oct 2008 06:38:39 +0000 (23:38 -0700) | ||
commit | eee0184da8457c1dbd4418f95d158917540da094 | |
tree | f2920493adc997f099abae2dd6384b7bce990e4b | tree | snapshot |
parent | 67faaaba8338cf59c212ce5239eeb223a77acdf0 | commit | diff |
Fix reading of cloud tags
The projectroot path could have SP in it, in which case iterating over
<$git_dir/ctags/*> does not correctly enumerate the cloud tags files at
all.
This can be observed by creating an empty t/trash directory and running
t9500 test. The $projectroot ends with "trash directory.t9500-gitweb-/"
and <$glob> would give "trash", which can be opened and reading from it
immediately yields undef, which in turn gives an undef value warning to
the standard error stream upon attempt to chomp it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The projectroot path could have SP in it, in which case iterating over
<$git_dir/ctags/*> does not correctly enumerate the cloud tags files at
all.
This can be observed by creating an empty t/trash directory and running
t9500 test. The $projectroot ends with "trash directory.t9500-gitweb-/"
and <$glob> would give "trash", which can be opened and reading from it
immediately yields undef, which in turn gives an undef value warning to
the standard error stream upon attempt to chomp it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |