aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-09-23 01:21:20 +0200
committerJunio C Hamano <junkio@cox.net>2006-09-22 16:59:22 -0700
commit5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0 (patch)
tree8b8684b01b5ee5cdd578ecc956cc11e641a62539 /gitweb
parent74d6166751ddcf08029ffc90a14158a86f80cd40 (diff)
downloadgit-5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0.tar.gz
git-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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
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));