]> gitweb.ps.run Git - ps-cgit/commitdiff
Merge branch 'master' of http://op-co.de/cgit
authorLars Hjemli <hjemli@gmail.com>
Tue, 8 Dec 2009 17:31:07 +0000 (18:31 +0100)
committerLars Hjemli <hjemli@gmail.com>
Tue, 8 Dec 2009 17:31:07 +0000 (18:31 +0100)
cgit.c

diff --git a/cgit.c b/cgit.c
index e1d38c2668c160b667f4d908006ae96a72a68394..08cb5d25621c2bd120982c86c0898e08497a083b 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -68,9 +68,9 @@ void repo_config(struct cgit_repo *repo, const char *name, const char *value)
                repo->section = xstrdup(value);
        else if (!strcmp(name, "readme") && value != NULL) {
                if (*value == '/')
-                       ctx.repo->readme = xstrdup(value);
+                       repo->readme = xstrdup(value);
                else
-                       ctx.repo->readme = xstrdup(fmt("%s/%s", ctx.repo->path, value));
+                       repo->readme = xstrdup(fmt("%s/%s", repo->path, value));
        } else if (ctx.cfg.enable_filter_overrides) {
                if (!strcmp(name, "about-filter"))
                        repo->about_filter = new_filter(value, 0);