Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx> Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- replace-object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/replace-object.c b/replace-object.c index a6a34217d8..96d339729a 100644 --- a/replace-object.c +++ b/replace-object.c @@ -68,8 +68,7 @@ static int register_replace_ref(const char *refname, hashcpy(repl_obj->replacement, oid->hash); /* Register new object */ - (void)r; - if (register_replace_object(the_repository, repl_obj, 1)) + if (register_replace_object(r, repl_obj, 1)) die("duplicate replace ref: %s", refname); return 0; -- 2.15.1.433.g936d1b9894.dirty