X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/93397a765b9d9af11b7d10c114406e303ea4fb1c..5632ba35d133ee29d46c031cdd4b4a37097b8ca1:/cgit.c diff --git a/cgit.c b/cgit.c index 5a93fcd..c82587b 100644 --- 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; }