diff options
author | Christian Hesse | 2016-09-29 21:44:41 +0200 |
---|---|---|
committer | Christian Hesse | 2016-10-04 09:47:18 +0200 |
commit | 1a9a75d7c7c33cd89f1c34445d56e51dc349dc31 (patch) | |
tree | d7d5671376592e37d9351211cb318d5b5e616ea2 /ui-log.c | |
parent | 3a0fd5e6b881e6a38a6be9224db0cf93512c0b2b (diff) | |
download | cgit-1a9a75d7c7c33cd89f1c34445d56e51dc349dc31.tar.gz cgit-1a9a75d7c7c33cd89f1c34445d56e51dc349dc31.tar.bz2 cgit-1a9a75d7c7c33cd89f1c34445d56e51dc349dc31.zip |
ui-log: replace get_sha1() with get_oid()
Data structures have been replaced already, so use correct function calls.
Diffstat (limited to 'ui-log.c')
-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 | } |