diff options
-rw-r--r-- | ui-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -325,7 +325,7 @@ static const char *disambiguate_ref(const char *ref, int *must_free_result) | |||
325 | struct strbuf longref = STRBUF_INIT; | 325 | struct strbuf longref = STRBUF_INIT; |
326 | 326 | ||
327 | strbuf_addf(&longref, "refs/heads/%s", ref); | 327 | strbuf_addf(&longref, "refs/heads/%s", ref); |
328 | if (get_sha1(longref.buf, oid.hash) == 0) { | 328 | if (get_oid(longref.buf, &oid) == 0) { |
329 | *must_free_result = 1; | 329 | *must_free_result = 1; |
330 | return strbuf_detach(&longref, NULL); | 330 | return strbuf_detach(&longref, NULL); |
331 | } | 331 | } |