From eed328d4b7d2424fc2a4792bdf47d6e37dd3ea53 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 11 Oct 2026 21:43:35 -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 2.12.1