summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 64c369f..3bba961 100644
--- a/src/main.c
+++ b/src/main.c
@@ -88,6 +88,12 @@ static int mirror_owner(const char *git_base, const struct github_cfg *cfg)
return -1;
for (size_t i = 0; i < res.repos_len; i++) {
+ if (cfg->skip_forks && res.repos[i].is_fork) {
+ fprintf(stderr, "Skipping forked repo: %s\n",
+ res.repos[i].name);
+ continue;
+ }
+
printf("Repo: %s\t%s\n", res.repos[i].name,
res.repos[i].url);