X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a..521e10c884055c800078e6dada97ccf6c5193aad:/shared.c?ds=sidebyside diff --git a/shared.c b/shared.c index 0a0e22e..3e20937 100644 --- a/shared.c +++ b/shared.c @@ -33,6 +33,7 @@ int chk_non_negative(int result, char *msg) return result; } +char *cgit_default_repo_desc = "[no description]"; struct cgit_repo *cgit_add_repo(const char *url) { struct cgit_repo *ret; @@ -52,7 +53,7 @@ struct cgit_repo *cgit_add_repo(const char *url) ret->url = trim_end(url, '/'); ret->name = ret->url; ret->path = NULL; - ret->desc = "[no description]"; + ret->desc = cgit_default_repo_desc; ret->owner = NULL; ret->section = ctx.cfg.section; ret->snapshots = ctx.cfg.snapshots;