Convert struct object to object_id
[git/git.git] / builtin / shortlog.c
index 007cc66..35ebd17 100644 (file)
@@ -129,7 +129,7 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
        }
        if (!author) {
                warning(_("Missing author: %s"),
-                   sha1_to_hex(commit->object.sha1));
+                   oid_to_hex(&commit->object.oid));
                return;
        }
        if (log->user_format) {