aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 6e91857..ae17d78 100644
--- a/shared.c
+++ b/shared.c
@@ -75,6 +75,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
75 ret->owner_filter = ctx.cfg.owner_filter; 75 ret->owner_filter = ctx.cfg.owner_filter;
76 ret->clone_url = ctx.cfg.clone_url; 76 ret->clone_url = ctx.cfg.clone_url;
77 ret->submodules.strdup_strings = 1; 77 ret->submodules.strdup_strings = 1;
78 ret->hide = ret->ignore = 0;
78 return ret; 79 return ret;
79} 80}
80 81
@@ -85,6 +86,8 @@ struct cgit_repo *cgit_get_repoinfo(const char *url)
85 86
86 for (i = 0; i < cgit_repolist.count; i++) { 87 for (i = 0; i < cgit_repolist.count; i++) {
87 repo = &cgit_repolist.repos[i]; 88 repo = &cgit_repolist.repos[i];
89 if (repo->ignore)
90 continue;
88 if (!strcmp(repo->url, url)) 91 if (!strcmp(repo->url, url))
89 return repo; 92 return repo;
90 } 93 }