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 2010-08-26 15:01:20 +08:00 提交者 Lars Hjemli
父节点 af492114cc
当前提交 aabc70f74b

查看文件

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