all repos — cgit @ 31ba37c0a44f152005fbb8ab49c05462fb741fd6

a hyperfast web frontend for git written in c

scan-tree: add test for noweb-file in repo dir

If such a file exists, the repo is not added to the repolist.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Feb 2010 18:40:02 +0100
commit

31ba37c0a44f152005fbb8ab49c05462fb741fd6

parent

c151ce61d87c577ac8a067523a406938c557d650

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M scan-tree.cscan-tree.c

@@ -56,6 +56,8 @@ fprintf(stderr, "Error accessing %s: %s (%d)\n",

path, strerror(errno), errno); return; } + if (!stat(fmt("%s/noweb", path), &st)) + return; if ((pwd = getpwuid(st.st_uid)) == NULL) { fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", path, strerror(errno), errno);