From aabc70f74b8c334510774ecd508699c418f48a56 Mon Sep 17 00:00:00 2001 From: Dean Scarff Date: Thu, 26 Aug 2010 15:01:20 +0800 Subject: 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 Signed-off-by: Lars Hjemli --- scan-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit 1.4.1 r DON'T USE THIS! --- web frontend for git
about summary refs log tree commit diff
Commit message (Collapse)Author
2009-06-11add cgit_httpscheme() -> http:// or https://Diego Ongaro
2009-06-07Return http statuscode 404 on unknown branchLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-03-15CGIT 0.8.2.1Lars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-03-15Fix doc-related glitches in Makefile and .gitignoreLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-03-15ui-snapshot: avoid segfault when no filename is specifiedLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-03-15fix segfault when displaying empty blobsEric Wong
When size is zero, subtracting one from it turns it into ULONG_MAX which causes an out-of-bounds access on buf. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2009-02-12Makefile: add doc-related targetsLars Hjemli