diff options
author | Jakub Narebski <jnareb@gmail.com> | 2012-01-05 21:26:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-05 13:29:50 -0800 |
commit | ff7f2185d6e04b7bea66f39ee51d79919ab1279c (patch) | |
tree | 1672acd00b0d276490c53966ee0e58e44b9d8029 /t/t9154 | |
parent | t5550: repack everything into one file (diff) | |
download | tgif-ff7f2185d6e04b7bea66f39ee51d79919ab1279c.tar.xz |
gitweb: Fix file links in "grep" search
There were two bugs in generating file links (links to "blob" view),
one hidden by the other. The correct way of generating file link is
href(action=>"blob", hash_base=>$co{'id'},
file_name=>$file);
It was $co{'hash'} (this key does not exist, and therefore this is
undef), and 'hash' instead of 'hash_base'.
To have this fix applied in single place, this commit also reduces
code duplication by saving file link (which is used for line links) in
$file_href.
Reported-by: Thomas Perl <th.perl@gmail.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9154')
0 files changed, 0 insertions, 0 deletions