Diffstat (limited to 'shared.c')
| -rw-r--r-- | shared.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -107,7 +107,6 @@ struct repoinfo *add_repo(const char *url) ret->enable_log_filecount = cgit_enable_log_filecount; ret->enable_log_linecount = cgit_enable_log_linecount; ret->module_link = cgit_module_link; - ret->readme = NULL; return ret; } @@ -188,12 +187,7 @@ void cgit_global_config_cb(const char *name, const char *value) cgit_repo->enable_log_linecount = cgit_enable_log_linecount * atoi(value); else if (cgit_repo && !strcmp(name, "repo.module-link")) cgit_repo->module_link= xstrdup(value); - else if (cgit_repo && !strcmp(name, "repo.readme") && value != NULL) { - if (*value == '/') - cgit_repo->readme = xstrdup(value); - else - cgit_repo->readme = xstrdup(fmt("%s/%s", cgit_repo->path, value)); - } else if (!strcmp(name, "include")) + else if (!strcmp(name, "include")) cgit_read_config(value, cgit_global_config_cb); } |