diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Hand the about filter the tree url its links need
With nothing below the about page, a readme's relative links have to be written against the tree, and only cgit knows how this site spells the url of a tree page and which ref the readme was read from. Both reach the filter already escaped for a url, built by the same writer as cgit's own links.
Diffstat (limited to 'source/filter.c')
-rw-r--r--source/filter.c4
1 file changed, 3 insertions, 1 deletion
diff --git a/source/filter.c b/source/filter.c
index 5f96cc0..ec48007 100644
--- a/source/filter.c
+++ b/source/filter.c
@@ -498,8 +498,10 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype)
case TRAILER:
argument_count = 2;
break;
- case SOURCE:
case ABOUT:
+ argument_count = 3;
+ break;
+ case SOURCE:
argument_count = 1;
break;
case COMMIT: