From 180ecdad0c0d9d2587c70ac893e881f7217a49e8 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 1 Nov 2026 17:21:33 -1000 Subject: Answer a submodule path with the submodule The tree page read the gitlink's commit as a blob, which outside the repository is a bad object id and inside it is the commit's raw text. --- source/ui-shared.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/ui-shared.h') diff --git a/source/ui-shared.h b/source/ui-shared.h index fa73c83..e52a3ae 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -142,6 +142,12 @@ extern void cgit_print_error_page(int code, const char *msg, const char *fmt, .. */ extern void cgit_print_blob_too_large(size_t size); +/* + * Answer with the 404 page for a path naming a submodule, whose commit rev + * lives in another repository, linking it the way a tree listing does. + */ +extern void cgit_print_submodule_page(char *path, const char *rev); + /* * Resolve rev to the parsed commit it names, peeling a tag, with oid set to * what rev itself names. Returns NULL once the 404 page naming rev is out. -- cgit 2.12.1