From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Tue, 4 Oct 2016 09:51:57 +0200 Subject: [PATCH 04/10] ui-log: replace get_sha1() with get_oid() In-Reply-To: <20161004075203.22115-1-list@eworm.de> References: <20161004095050.29c7859b@leda.localdomain> <20161004075203.22115-1-list@eworm.de> Message-ID: <20161004075203.22115-4-list@eworm.de> From: Christian Hesse Data structures have been replaced already, so use correct function calls. Signed-off-by: Christian Hesse --- ui-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-log.c b/ui-log.c index a31ff7c..6cc81a3 100644 --- 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); } -- 2.10.0