all repos — cgit @ aabc70f74b8c334510774ecd508699c418f48a56

a hyperfast web frontend for git written in c

Use absolute path for scanned repo readme

repo.readme is transformed to an absolute path when read from the config,
so add_repo needs to add "README.html" with the repository path too.

Signed-off-by: Dean Scarff <dos@scarff.id.au>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Dean Scarff dos@scarff.id.au
Thu, 26 Aug 2010 15:01:20 +0800
commit

aabc70f74b8c334510774ecd508699c418f48a56

parent

af492114ccf6d5ab72890277ad828cf6d9fa8909

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M scan-tree.cscan-tree.c

@@ -83,7 +83,7 @@ readfile(p, &repo->desc, &size);

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)) {