Skip to content

Commit 7d7f4e3

Browse files
committed
Merge branch 'rs/bisect-oid-to-hex-fix'
Code cleanup. * rs/bisect-oid-to-hex-fix: bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()
2 parents 33cef0f + 7d23ff8 commit 7d7f4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bisect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static enum bisect_error bisect_checkout(const struct object_id *bisect_rev, int
709709
char bisect_rev_hex[GIT_MAX_HEXSZ + 1];
710710
enum bisect_error res = BISECT_OK;
711711

712-
memcpy(bisect_rev_hex, oid_to_hex(bisect_rev), the_hash_algo->hexsz + 1);
712+
oid_to_hex_r(bisect_rev_hex, bisect_rev);
713713
update_ref(NULL, "BISECT_EXPECTED_REV", bisect_rev, NULL, 0, UPDATE_REFS_DIE_ON_ERR);
714714

715715
argv_checkout[2] = bisect_rev_hex;

0 commit comments

Comments
 (0)