Diff options
Diffstat (limited to 'source/ui-atom.c')
| -rw-r--r-- | source/ui-atom.c | 4 |
1 file changed, 4 insertions, 0 deletions
diff --git a/source/ui-atom.c b/source/ui-atom.c index b9762b1..dea9360 100644 --- a/source/ui-atom.c +++ b/source/ui-atom.c @@ -167,6 +167,10 @@ void cgit_print_atom(char *tip, const char *path, int max_count) argv[1] = "--all"; else if (!tip) argv[1] = ctx.qry.head; + // An empty repository has no head, and a walk given nowhere to start + // leaves the feed without entries. + if (!argv[1]) + argc = 1; if (path) { argv[argc++] = "--"; |
