]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Teach cgit_object_link() about tag objects
[ps-cgit] / ui-shared.c
index 45105dc813ec0bad2dbcc770527149dbbf6c8256..14180105116cd27dca0d366bca7a39b531b4e08b 100644 (file)
@@ -272,6 +272,9 @@ void cgit_object_link(struct object *obj)
        } else if (obj->type == OBJ_TREE) {
                page = "tree";
                arg = "id";
+       } else if (obj->type == OBJ_TAG) {
+               page = "tag";
+               arg = "id";
        } else {
                page = "blob";
                arg = "id";