diff-lib.c: remove the_repository references
[gitweb.git] / builtin / commit.c
index e89bf35634a877fcf68efab0c62de8d00649683d..91b19202557b5c1a23dbc11a2a447b8e1388a032 100644 (file)
@@ -908,7 +908,8 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
                        if (ignore_submodule_arg &&
                            !strcmp(ignore_submodule_arg, "all"))
                                flags.ignore_submodules = 1;
-                       committable = index_differs_from(parent, &flags, 1);
+                       committable = index_differs_from(the_repository,
+                                                        parent, &flags, 1);
                }
        }
        strbuf_release(&committer_ident);