Author: Christian Hesse <mail@eworm.de>
ui-log: replace get_sha1() with get_oid() Data structures have been replaced already, so use correct function calls.
ui-log.c | 2 +-
diff --git a/ui-log.c b/ui-log.c index a31ff7c7df52c6de69cb21f66acbcc1b83ad3ee7..6cc81a3b1dce99fee225603b9991b738ffd97e73 100644 --- a/ui-log.c +++ b/ui-log.c @@ -325,7 +325,7 @@ struct object_id oid; struct strbuf longref = STRBUF_INIT; strbuf_addf(&longref, "refs/heads/%s", ref); - if (get_sha1(longref.buf, oid.hash) == 0) { + if (get_oid(longref.buf, &oid) == 0) { *must_free_result = 1; return strbuf_detach(&longref, NULL); }