From 6c28482dbbec61808606f1e3a7d6dc9a226cea5d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 17 Oct 2026 12:53:18 -1000 Subject: Say why an oversized readme leaves about empty A readme past max-blob-size is never read, which left the about page with an empty block and no word of why. --- source/ui-blob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-blob.c') diff --git a/source/ui-blob.c b/source/ui-blob.c index e1503e0..4690bb5 100644 --- a/source/ui-blob.c +++ b/source/ui-blob.c @@ -133,7 +133,7 @@ int cgit_print_file(char *path, const char *head, int file_only, int html_escape if (type == OBJ_BAD) return -1; if (cgit_blob_too_large(size)) - return -1; + return -2; buf = odb_read_object(the_repository->objects, &oid, &type, &size); if (!buf) return -1; -- cgit