userdiff.c: remove implicit dependency on the_index
[gitweb.git] / apply.c
diff --git a/apply.c b/apply.c
index ea111ab13f45f517bd0c6c9df86181982fd27895..571b89c2e062b0e73d78b233121085ecd56fc18d 100644 (file)
--- a/apply.c
+++ b/apply.c
@@ -4630,7 +4630,7 @@ static int write_out_results(struct apply_state *state, struct patch *list)
                }
                string_list_clear(&cpath, 0);
 
-               rerere(0);
+               repo_rerere(state->repo, 0);
        }
 
        return errs;