mirror of
https://git.zx2c4.com/cgit
synced 2024-11-09 18:18:42 +00:00
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>
This commit is contained in:
parent
c151ce61d8
commit
31ba37c0a4
@ -56,6 +56,8 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
|
|||||||
path, strerror(errno), errno);
|
path, strerror(errno), errno);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!stat(fmt("%s/noweb", path), &st))
|
||||||
|
return;
|
||||||
if ((pwd = getpwuid(st.st_uid)) == NULL) {
|
if ((pwd = getpwuid(st.st_uid)) == NULL) {
|
||||||
fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n",
|
fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n",
|
||||||
path, strerror(errno), errno);
|
path, strerror(errno), errno);
|
||||||
|
Loading…
Reference in New Issue
Block a user