From 3a320a3cdef3229471c60c1d3af47b0dc797ea42 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 8 Oct 2026 22:16:13 -1000 Subject: Peel an annotated tag before looking for a readme Tag links carry the tag name as the head, so on any page reached from an annotated tag the about tab vanished and the about page redirected to the summary. --- source/ui-blob.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/ui-blob.c') diff --git a/source/ui-blob.c b/source/ui-blob.c index 1d22483..1a759a7 100644 --- a/source/ui-blob.c +++ b/source/ui-blob.c @@ -104,6 +104,7 @@ int cgit_ref_path_exists(const char *path, const char *ref, int file_only) if (repo_get_oid(the_repository, ref, &oid)) goto done; + peel_to_commit(&oid); if (odb_read_object_info(the_repository->objects, &oid, &size) != OBJ_COMMIT) goto done; found = find_path_oid(&oid, path_copy, file_only); -- cgit 2.12.1