]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
scan-tree: Unify gitweb.* and cgit.* settings into one config option.
[ps-cgit] / shared.c
index 0a0e22e7255b0db8b9446c496fa85b58d46e24aa..3e20937a0ce7dbc568742a5d9cef8502d7dde406 100644 (file)
--- 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;