mirror of
https://git.zx2c4.com/cgit
synced 2024-11-29 20:06:21 +00:00
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>
This commit is contained in:
parent
af492114cc
commit
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);
|
p = fmt("%s/README.html", path);
|
||||||
if (!stat(p, &st))
|
if (!stat(p, &st))
|
||||||
repo->readme = "README.html";
|
repo->readme = xstrdup(p);
|
||||||
|
|
||||||
p = fmt("%s/cgitrc", path);
|
p = fmt("%s/cgitrc", path);
|
||||||
if (!stat(p, &st)) {
|
if (!stat(p, &st)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user