author | Jakub Narebski <jnareb@gmail.com> | |
Mon, 8 Dec 2008 13:13:21 +0000 (14:13 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 8 Dec 2008 17:04:36 +0000 (09:04 -0800) | ||
commit | 4586864afee675eb1c617666f806664aef04a02a | |
tree | 1883d8011feab16521e1f3d3280b13eef7764abe | tree | snapshot |
parent | e10ea8126c27b079e81932ca487747b4961d0604 | commit | diff |
gitweb: Fix bug in insert_file() subroutine
In insert_file() subroutine (which is used to insert HTML fragments as
custom header, footer, hometext (for projects list view), and per
project README.html (for summary view)) we used:
map(to_utf8, <$fd>);
This doesn't work, and other form has to be used:
map { to_utf8($_) } <$fd>;
Now with test for t9600 added, for $GIT_DIR/README.html.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In insert_file() subroutine (which is used to insert HTML fragments as
custom header, footer, hometext (for projects list view), and per
project README.html (for summary view)) we used:
map(to_utf8, <$fd>);
This doesn't work, and other form has to be used:
map { to_utf8($_) } <$fd>;
Now with test for t9600 added, for $GIT_DIR/README.html.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history | |
t/t9500-gitweb-standalone-no-errors.sh | diff | blob | history |