mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:15:08 +00:00
Merge branch 'jh/path-limit'
Conflicts: cgit.h ui-commit.c
This commit is contained in:
6
cgit.c
6
cgit.c
@@ -433,6 +433,12 @@ static void process_request(void *cbdata)
|
||||
return;
|
||||
}
|
||||
|
||||
/* If cmd->want_vpath is set, assume ctx->qry.path contains a "virtual"
|
||||
* in-project path limit to be made available at ctx->qry.vpath.
|
||||
* Otherwise, no path limit is in effect (ctx->qry.vpath = NULL).
|
||||
*/
|
||||
ctx->qry.vpath = cmd->want_vpath ? ctx->qry.path : NULL;
|
||||
|
||||
if (cmd->want_repo && !ctx->repo) {
|
||||
cgit_print_http_headers(ctx);
|
||||
cgit_print_docstart(ctx);
|
||||
|
Reference in New Issue
Block a user