summaryrefslogtreecommitdiffabout
path: root/scan-tree.c
authorLars Hjemli <hjemli@gmail.com>2010-02-28 17:40:02 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-02-28 17:40:02 (UTC)
commit31ba37c0a44f152005fbb8ab49c05462fb741fd6 (patch) (unidiff)
tree1270e4a66e4a436c7802795ec3c420dad4fa1894 /scan-tree.c
parentc151ce61d87c577ac8a067523a406938c557d650 (diff)
downloadcgit-31ba37c0a44f152005fbb8ab49c05462fb741fd6.zip
cgit-31ba37c0a44f152005fbb8ab49c05462fb741fd6.tar.gz
cgit-31ba37c0a44f152005fbb8ab49c05462fb741fd6.tar.bz2
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>
Diffstat (limited to 'scan-tree.c') (more/less context) (ignore whitespace changes)
-rw-r--r--scan-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scan-tree.c b/scan-tree.c
index dbca797..1e18f3c 100644
--- a/scan-tree.c
+++ b/scan-tree.c
@@ -58,2 +58,4 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
58 } 58 }
59 if (!stat(fmt("%s/noweb", path), &st))
60 return;
59 if ((pwd = getpwuid(st.st_uid)) == NULL) { 61 if ((pwd = getpwuid(st.st_uid)) == NULL) {