Print out parsed namespace on request

This is not strictly necessary,
as we do not have any way to generate namespace entries from a scan-path,
but I'd rather not leave this as a surprise
to someone who comes up with a good namespace discovery mechanism.

Signed-off-by: Richard Maw <richard.maw@gmail.com>
This commit is contained in:
Richard Maw 2016-06-25 20:54:07 +01:00
parent 7a76691acf
commit 2163777623

2
cgit.c
View File

@ -778,6 +778,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
fprintf(f, "repo.url=%s\n", repo->url); fprintf(f, "repo.url=%s\n", repo->url);
fprintf(f, "repo.name=%s\n", repo->name); fprintf(f, "repo.name=%s\n", repo->name);
fprintf(f, "repo.path=%s\n", repo->path); fprintf(f, "repo.path=%s\n", repo->path);
if (repo->namespace)
fprintf(f, "repo.namespace=%s\n", repo->namespace);
if (repo->owner) if (repo->owner)
fprintf(f, "repo.owner=%s\n", repo->owner); fprintf(f, "repo.owner=%s\n", repo->owner);
if (repo->desc) { if (repo->desc) {