static void prepare_replace_object(void)
{
static int replace_object_prepared;
+ struct each_ref_fn_sha1_adapter wrapped_register_replace_ref =
+ {register_replace_ref, NULL};
if (replace_object_prepared)
return;
- for_each_replace_ref(register_replace_ref, NULL);
+ for_each_replace_ref(each_ref_fn_adapter, &wrapped_register_replace_ref);
replace_object_prepared = 1;
if (!replace_object_nr)
check_replace_refs = 0;