line-range.c: remove implicit dependency on the_index
[gitweb.git] / builtin / commit.c
index 0d9828e29ebe89f037e68761d5cd5b407339cd48..bf06fbf49f0f996f6430eda469a7f580b55d5a83 100644 (file)
@@ -1651,7 +1651,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
                      "new_index file. Check that disk is not full and quota is\n"
                      "not exceeded, and then \"git reset HEAD\" to recover."));
 
-       rerere(0);
+       repo_rerere(the_repository, 0);
        run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
        run_commit_hook(use_editor, get_index_file(), "post-commit", NULL);
        if (amend && !no_post_rewrite) {