From: Giuseppe Bilotta Date: Thu, 11 Nov 2010 12:26:08 GMT Subject: [PATCHv7 01/11] gitweb: use fullname as hash_base in heads link Message-ID: <1289478378-15604-2-git-send-email-giuseppe.bilotta@gmail.com> In-Reply-To: <1289478378-15604-1-git-send-email-giuseppe.bilotta@gmail.com> Otherwise, if names are manipulated for display, the link will point to the wrong head. Signed-off-by: Giuseppe Bilotta --- gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 253f41a..77693ab 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4960,7 +4960,7 @@ sub git_heads_body { "" . $cgi->a({-href => href(action=>"shortlog", hash=>$ref{'fullname'})}, "shortlog") . " | " . $cgi->a({-href => href(action=>"log", hash=>$ref{'fullname'})}, "log") . " | " . - $cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'name'})}, "tree") . + $cgi->a({-href => href(action=>"tree", hash=>$ref{'fullname'}, hash_base=>$ref{'fullname'})}, "tree") . "\n" . ""; } -- 1.7.3.68.g6ec8