Fix snapshot link in tree view
It would just give HEAD snapshot instead of one of the particular tree. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Sep 23, 2006 at 01:21 UTC
5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -2762,7 +2762,7 @@ sub git_tree {
2762
if ($have_snapshot) {
2763
# FIXME: Should be available when we have no hash base as well.
2764
push @views_nav,
2765
- $cgi->a({-href => href(action=>"snapshot")},
2765
+ $cgi->a({-href => href(action=>"snapshot", hash=>$hash)},
2766
"snapshot");
2767
}
2768
git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));