Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-08-10 20:24:01 +0300
committerJunio C Hamano <gitster@pobox.com>2020-08-10 20:24:01 +0300
commit7d7f4e3a3e64440dd38aa7da2d871813ae57eab7 (patch)
tree9f7398717d00b7ea78d33e55cfaa5930d32fada8 /bisect.c
parent33cef0f3ff490d6fb0ffa3effbebd5e1225cab5d (diff)
parent7d23ff818f156da48882bec9ac84fb4e33dd619a (diff)
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()
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index 6959fb8aad..a088a0f82e 100644
--- a/bisect.c
+++ b/bisect.c
@@ -709,7 +709,7 @@ static enum bisect_error bisect_checkout(const struct object_id *bisect_rev, int
char bisect_rev_hex[GIT_MAX_HEXSZ + 1];
enum bisect_error res = BISECT_OK;
- memcpy(bisect_rev_hex, oid_to_hex(bisect_rev), the_hash_algo->hexsz + 1);
+ oid_to_hex_r(bisect_rev_hex, bisect_rev);
update_ref(NULL, "BISECT_EXPECTED_REV", bisect_rev, NULL, 0, UPDATE_REFS_DIE_ON_ERR);
argv_checkout[2] = bisect_rev_hex;