mirror of
https://git.zx2c4.com/cgit
synced 2024-11-09 10:08:42 +00:00
ui-log: replace get_sha1() with get_oid()
Data structures have been replaced already, so use correct function calls.
This commit is contained in:
parent
3a0fd5e6b8
commit
1a9a75d7c7
2
ui-log.c
2
ui-log.c
@ -325,7 +325,7 @@ static const char *disambiguate_ref(const char *ref, int *must_free_result)
|
|||||||
struct strbuf longref = STRBUF_INIT;
|
struct strbuf longref = STRBUF_INIT;
|
||||||
|
|
||||||
strbuf_addf(&longref, "refs/heads/%s", ref);
|
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;
|
*must_free_result = 1;
|
||||||
return strbuf_detach(&longref, NULL);
|
return strbuf_detach(&longref, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user