summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--replace_object.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/replace_object.c b/replace_object.c
index 16a95ea416..567d9da708 100644
--- a/replace_object.c
+++ b/replace_object.c
@@ -31,7 +31,9 @@ static int register_replace_ref(const char *refname,
return 0;
}
-static void prepare_replace_object(void)
+#define prepare_replace_object(r) \
+ prepare_replace_object_##r()
+static void prepare_replace_object_the_repository(void)
{
if (the_repository->objects->replace_map)
return;
@@ -58,7 +60,7 @@ const struct object_id *do_lookup_replace_object(const struct object_id *oid)
int depth = MAXREPLACEDEPTH;
const struct object_id *cur = oid;
- prepare_replace_object();
+ prepare_replace_object(the_repository);
/* Try to recursively replace the object */
while (depth-- > 0) {