diff options
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -433,6 +433,12 @@ static void process_request(void *cbdata) | |||
433 | return; | 433 | return; |
434 | } | 434 | } |
435 | 435 | ||
436 | /* If cmd->want_vpath is set, assume ctx->qry.path contains a "virtual" | ||
437 | * in-project path limit to be made available at ctx->qry.vpath. | ||
438 | * Otherwise, no path limit is in effect (ctx->qry.vpath = NULL). | ||
439 | */ | ||
440 | ctx->qry.vpath = cmd->want_vpath ? ctx->qry.path : NULL; | ||
441 | |||
436 | if (cmd->want_repo && !ctx->repo) { | 442 | if (cmd->want_repo && !ctx->repo) { |
437 | cgit_print_http_headers(ctx); | 443 | cgit_print_http_headers(ctx); |
438 | cgit_print_docstart(ctx); | 444 | cgit_print_docstart(ctx); |