about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDean Scarff <dos@scarff.id.au>2010-08-26 15:01:20 +0800
committerLars Hjemli <hjemli@gmail.com>2010-11-07 16:21:59 +0100
commitaabc70f74b8c334510774ecd508699c418f48a56 (patch)
tree38581a70a9e8dba766e99124e2c5e69cf97a595a
parentCGIT 0.8.3.4 (diff)
downloadcgit-pink-aabc70f74b8c334510774ecd508699c418f48a56.tar.gz
cgit-pink-aabc70f74b8c334510774ecd508699c418f48a56.zip
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>
Diffstat (limited to '')
-rw-r--r--scan-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan-tree.c b/scan-tree.c
index dbca797..ebfd41e 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)) {
out pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe