gitweb: use fullname as hash_base in heads link
Otherwise, if names are manipulated for display, the link will point to the wrong head. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giuseppe Bilotta committed
Nov 11, 2010 at 13:26 UTC
9e70e15814d645b48e2ed892520b88122c992b30
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -4960,7 +4960,7 @@ sub git_heads_body {
4960
"<td class=\"link\">" .
4961
$cgi->a({-href => href(action=>"shortlog", hash=>$ref{'fullname'})}, "shortlog") . " | " .
4962
$cgi->a({-href => href(action=>"log", hash=>$ref{'fullname'})}, "log") . " | " .
4963
- $cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'name'})}, "tree") .
4963
+ $cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'fullname'})}, "tree") .
4964
"</td>\n" .
4965
"</tr>";
4966
}