]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-repolist.c
filter: make exit status local
[cgit.git] / ui-repolist.c
index 47ca997883923222c4797ed1c20b59348abe2058..d4ee2798c0d9be1ec02a308b4072ac97b0889c42 100644 (file)
@@ -1,7 +1,6 @@
 /* ui-repolist.c: functions for generating the repolist page
  *
- * Copyright (C) 2006 Lars Hjemli
- * Copyright (C) 2012 Jason A. Donenfeld <Jason@zx2c4.com>
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
@@ -332,9 +331,13 @@ void cgit_print_site_readme()
 {
        if (!ctx.cfg.root_readme)
                return;
-       if (ctx.cfg.about_filter)
+       if (ctx.cfg.about_filter) {
+               ctx.cfg.about_filter->argv[1] = ctx.cfg.root_readme;
                cgit_open_filter(ctx.cfg.about_filter);
+       }
        html_include(ctx.cfg.root_readme);
-       if (ctx.cfg.about_filter)
+       if (ctx.cfg.about_filter) {
                cgit_close_filter(ctx.cfg.about_filter);
+               ctx.cfg.about_filter->argv[1] = NULL;
+       }
 }