all repos — cgit @ 1a9a75d7c7c33cd89f1c34445d56e51dc349dc31

a hyperfast web frontend for git written in c

ui-log: replace get_sha1() with get_oid()

Data structures have been replaced already, so use correct function calls.
Christian Hesse mail@eworm.de
Thu, 29 Sep 2016 21:44:41 +0200
commit

1a9a75d7c7c33cd89f1c34445d56e51dc349dc31

parent

3a0fd5e6b881e6a38a6be9224db0cf93512c0b2b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ui-log.cui-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); }