summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Petr Baudis <pasky@suse.cz>2006-09-23 01:21:20 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-22 16:59:22 -0700
commit5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0 (patch)
tree8b8684b01b5ee5cdd578ecc956cc11e641a62539
parentgitweb: Fix @git_base_url_list usage (diff)
downloadtgif-5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0.tar.xz
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>
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 7ff5c047f3..3d06181229 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));