aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index c04f380..48358cc 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -525,7 +525,7 @@ void cgit_object_link(struct object *obj)
525{ 525{
526 char *page, *shortrev, *fullrev, *name; 526 char *page, *shortrev, *fullrev, *name;
527 527
528 fullrev = sha1_to_hex(obj->sha1); 528 fullrev = oid_to_hex(&obj->oid);
529 shortrev = xstrdup(fullrev); 529 shortrev = xstrdup(fullrev);
530 shortrev[10] = '\0'; 530 shortrev[10] = '\0';
531 if (obj->type == OBJ_COMMIT) { 531 if (obj->type == OBJ_COMMIT) {