]> granicus.if.org Git - cgit/commitdiff
ui-log: replace get_sha1() with get_oid()
authorChristian Hesse <mail@eworm.de>
Thu, 29 Sep 2016 19:44:41 +0000 (21:44 +0200)
committerChristian Hesse <mail@eworm.de>
Tue, 4 Oct 2016 07:47:18 +0000 (09:47 +0200)
Data structures have been replaced already, so use correct function calls.

ui-log.c

index a31ff7c7df52c6de69cb21f66acbcc1b83ad3ee7..6cc81a3b1dce99fee225603b9991b738ffd97e73 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -325,7 +325,7 @@ static const char *disambiguate_ref(const char *ref, int *must_free_result)
        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);
        }