]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Extend repo summary with tag list
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index d975570a73e361606753f641a629b05846914052..9535abc4128e47df2a57a19e3fbff97d650a3c0a 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -22,7 +22,7 @@ static void cgit_prepare_cache(struct cacheitem *item)
        } else {
                item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, 
                           cgit_query_repo, cgit_query_page, 
-                          cgit_querystring));
+                          cache_safe_filename(cgit_querystring)));
                if (cgit_query_has_symref)
                        item->ttl = cgit_cache_dynamic_ttl;
                else if (cgit_query_has_sha1)
@@ -56,7 +56,7 @@ static void cgit_print_repo_page(struct cacheitem *item)
        } else if (!strcmp(cgit_query_page, "log")) {
                cgit_print_log(cgit_query_head, cgit_query_ofs, 100, cgit_query_search);
        } else if (!strcmp(cgit_query_page, "tree")) {
-               cgit_print_tree(cgit_query_sha1);
+               cgit_print_tree(cgit_query_sha1, cgit_query_path);
        } else if (!strcmp(cgit_query_page, "commit")) {
                cgit_print_commit(cgit_query_sha1);
        } else if (!strcmp(cgit_query_page, "view")) {