From: Petr Baudis Date: Fri, 22 Sep 2006 23:21:20 +0000 (+0200) Subject: Fix snapshot link in tree view X-Git-Tag: v1.4.3-rc1~52 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0;p=git.git Fix snapshot link in tree view It would just give HEAD snapshot instead of one of the particular tree. Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7ff5c047f..3d0618122 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2762,7 +2762,7 @@ sub git_tree { if ($have_snapshot) { # FIXME: Should be available when we have no hash base as well. push @views_nav, - $cgi->a({-href => href(action=>"snapshot")}, + $cgi->a({-href => href(action=>"snapshot", hash=>$hash)}, "snapshot"); } git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));