Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Answer an empty repository's feed with a feed
Diffstat (limited to 'source/cgit.c')
| -rw-r--r-- | source/cgit.c | 4 |
1 file changed, 4 insertions, 0 deletions
diff --git a/source/cgit.c b/source/cgit.c index d982fdb..12ed19e 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -1241,6 +1241,10 @@ static int prepare_repo_cmd(int nongit, int err, int clone) // <link rel='vcs-git'> and those clone urls expand macros such // as $CGIT_REPO_URL out of this environment. prepare_repo_env(ctx.repo); + // A feed reader cannot read the page below, so the feed goes + // out with no entries. + if (!strcmp(ctx.qry.page, "atom")) + return 0; cgit_print_layout_start(); cgit_print_empty_repo(); cgit_print_layout_end(); |
