X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=bisect.c;h=e81c91d02c07552dd50e82d42ae3e14f81945e01;hp=e87ac29a51be4126415aed1bc9f4638660232010;hb=12a4aeaad8aa2071f9b20f6ac87454c5f6d2d4fb;hpb=0c47e8ddf5e6584fe8baf8d25b2bcc4ca4c9cb5d diff --git a/bisect.c b/bisect.c index e87ac29a51..e81c91d02c 100644 --- a/bisect.c +++ b/bisect.c @@ -707,7 +707,7 @@ static int bisect_checkout(const struct object_id *bisect_rev, int no_checkout) { char bisect_rev_hex[GIT_MAX_HEXSZ + 1]; - memcpy(bisect_rev_hex, oid_to_hex(bisect_rev), GIT_SHA1_HEXSZ + 1); + memcpy(bisect_rev_hex, oid_to_hex(bisect_rev), the_hash_algo->hexsz + 1); update_ref(NULL, "BISECT_EXPECTED_REV", bisect_rev, NULL, 0, UPDATE_REFS_DIE_ON_ERR); argv_checkout[2] = bisect_rev_hex;