author | Lars Hjemli <hjemli@gmail.com> | 2010-06-19 09:41:32 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-06-19 09:41:32 (UTC) |
commit | caf0825d97582d137387b8879867247e92cca022 (patch) (unidiff) | |
tree | f330d875b3846467a2167ab83168b5b6cea29cdc | |
parent | d6dc3aee9acadfe368864f24ea18ccd47bbb0b9b (diff) | |
parent | 31ba37c0a44f152005fbb8ab49c05462fb741fd6 (diff) | |
download | cgit-caf0825d97582d137387b8879867247e92cca022.zip cgit-caf0825d97582d137387b8879867247e92cca022.tar.gz cgit-caf0825d97582d137387b8879867247e92cca022.tar.bz2 |
Merge branch 'lh/noweb'
-rw-r--r-- | scan-tree.c | 2 |
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 | |||
@@ -53,12 +53,14 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) | |||
53 | 53 | ||
54 | if (stat(path, &st)) { | 54 | if (stat(path, &st)) { |
55 | fprintf(stderr, "Error accessing %s: %s (%d)\n", | 55 | fprintf(stderr, "Error accessing %s: %s (%d)\n", |
56 | path, strerror(errno), errno); | 56 | path, strerror(errno), errno); |
57 | return; | 57 | return; |
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) { |
60 | fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", | 62 | fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", |
61 | path, strerror(errno), errno); | 63 | path, strerror(errno), errno); |
62 | return; | 64 | return; |
63 | } | 65 | } |
64 | if (base == path) | 66 | if (base == path) |