diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
Diffstat (limited to 'source')
-rw-r--r--source/ui-blob.c1
1 file changed, 1 insertion, 0 deletions
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);