]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
CGIT 0.8.3.2
[ps-cgit] / ui-tree.c
index f64e6e0d701ebf73c06c2bcebebb712abcd69859..a1647678ecac88798f0f784a386765a16de4a0e7 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -23,7 +23,7 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size)
 
        html("<table summary='blob content' class='blob'>\n");
 
 
        html("<table summary='blob content' class='blob'>\n");
 
-       if (ctx.cfg.linenumbers) {
+       if (ctx.cfg.enable_tree_linenumbers) {
                html("<tr><td class='linenumbers'><pre>");
                idx = 0;
                lineno = 0;
                html("<tr><td class='linenumbers'><pre>");
                idx = 0;
                lineno = 0;
@@ -280,6 +280,6 @@ void cgit_print_tree(const char *rev, char *path)
        }
 
        match_path = path;
        }
 
        match_path = path;
-       read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL);
+       read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL);
        ls_tail();
 }
        ls_tail();
 }