From d466dfc252f9896b1d6bdce623067378e04b8e71 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 29 Jul 2018 16:33:26 +0100 Subject: added my name to copyright statements -- few tweaks --- ui_70-repolist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ui_70-repolist.c') 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 + * 2018 Vincenzo 'KatolaZ' Nicosia * * 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; } -- cgit v1.2.3