]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Add cgit_query.nohead flag
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 5a93fcdc6376a9a1ad7ac1f7090988c624481294..c82587b68b8cc5169f4265eaad98fbc938aa0b8e 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -254,6 +254,7 @@ static int prepare_repo_cmd(struct cgit_context *ctx)
        ctx->page.title = fmt("%s - %s", ctx->repo->name, ctx->repo->desc);
 
        if (!ctx->qry.head) {
+               ctx->qry.nohead = 1;
                ctx->qry.head = find_default_branch(ctx->repo);
                ctx->repo->defbranch = ctx->qry.head;
        }