Remove git-zip-tree
[gitweb.git] / gitweb / gitweb.perl
index 30d7d76723eeba529a8e5d095a66982f100b2beb..3d06181229a089ad63d7a46744680a3b161a72f3 100755 (executable)
@@ -752,7 +752,7 @@ sub git_get_project_description {
 sub git_get_project_url_list {
        my $path = shift;
 
-       open my $fd, "$projectroot/$path/cloneurl" or return undef;
+       open my $fd, "$projectroot/$path/cloneurl" or return;
        my @git_project_url_list = map { chomp; $_ } <$fd>;
        close $fd;
 
@@ -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));