mirror of
https://git.zx2c4.com/cgit
synced 2024-12-25 00:21:52 +00:00
Parse repo.namespace
This contains the unexpanded name of the namespace rather than the base ref of the namespace, since the git namespace mechanism works by setting GIT_NAMESPACE and on the first call to get_git_namespace() it gets expanded. We need to save this for a later call to prepare_repo_cmd, rather than trying to process it here, since we can only do it once, and we have other uses for the unexpanded name. Signed-off-by: Richard Maw <richard.maw@gmail.com>
This commit is contained in:
parent
b2ac89127a
commit
7a76691acf
2
cgit.c
2
cgit.c
@ -45,6 +45,8 @@ static void repo_config(struct cgit_repo *repo, const char *name, const char *va
|
||||
repo->homepage = xstrdup(value);
|
||||
else if (!strcmp(name, "defbranch"))
|
||||
repo->defbranch = xstrdup(value);
|
||||
else if (!strcmp(name, "namespace"))
|
||||
repo->namespace = xstrdup(value);
|
||||
else if (!strcmp(name, "snapshots"))
|
||||
repo->snapshots = ctx.cfg.snapshots & cgit_parse_snapshots_mask(value);
|
||||
else if (!strcmp(name, "enable-commit-graph"))
|
||||
|
Loading…
Reference in New Issue
Block a user