]> git.cameronkatri.com Git - cgit.git/blobdiff - scan-tree.c
Use absolute path for scanned repo readme
[cgit.git] / scan-tree.c
index dbca7971105ae17732267822abe7049e98f2f523..ebfd41e5f16c8fc83b8ea17a9634eaf607a8ddb3 100644 (file)
@@ -83,7 +83,7 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
 
        p = fmt("%s/README.html", path);
        if (!stat(p, &st))
-               repo->readme = "README.html";
+               repo->readme = xstrdup(p);
 
        p = fmt("%s/cgitrc", path);
        if (!stat(p, &st)) {