diff options
Diffstat (limited to 'ui_70-repolist.c')
-rw-r--r-- | ui_70-repolist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui_70-repolist.c b/ui_70-repolist.c index 7a4e6ae..7cf1da9 100644 --- a/ui_70-repolist.c +++ b/ui_70-repolist.c @@ -1,6 +1,7 @@ /* ui-repolist.c: functions for generating the repolist page * * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com> + * 2018 Vincenzo 'KatolaZ' Nicosia <katolaz@freaknet.org> * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -110,8 +111,10 @@ static int is_in_url(struct cgit_repo *repo) static int is_visible(struct cgit_repo *repo) { - if (repo->hide || repo->ignore) + if (repo->hide || repo->ignore){ + fprintf(stderr, "%s is invisible or ignored", repo->name); return 0; + } if (!(is_match(repo) && is_in_url(repo))) return 0; return 1; @@ -248,7 +251,7 @@ void cgit_print_repolist(void) int sorted = 0; if (!any_repos_visible()) { - cgit_gopher_error("No repositories found"); + cgit_gopher_error("No visible repositories found"); return; } |