mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
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>
This commit is contained in:
parent
74d6166751
commit
5c7d2cf3d6
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user