the repository which powers this website
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 <[email protected]>
Signed-off-by: Lars Hjemli <[email protected]>
| -rw-r--r-- | scan-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scan-tree.c b/scan-tree.c index dbca7971..ebfd41e5 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -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)) { |