]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Remove global and obsolete cgit_cmd
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 3943a0f8ab3ed143d8492f6ee7ba8b3450ec4ee1..f749b6be181b85fdb9b020ef659f517b289a6b08 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -181,7 +181,7 @@ static int cgit_prepare_cache(struct cacheitem *item)
                return 1;
        }
 
-       if (!cgit_cmd) {
+       if (!ctx.qry.page) {
                item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root,
                                         cache_safe_filename(ctx.repo->url),
                                         cache_safe_filename(ctx.qry.raw)));