Code

Rename ".dotest/" to ".git/rebase" and ".dotest-merge" to "rebase-merge"
[git.git] / builtin-rm.c
index a3d25e6a571584c486d252c5a8e2b182f3da86e3..22c9bd1c6cf2d372e0262506cc1e21daebdf579a 100644 (file)
@@ -144,7 +144,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
        const char **pathspec;
        char *seen;
 
-       git_config(git_default_config);
+       git_config(git_default_config, NULL);
 
        newfd = hold_locked_index(&lock_file, 1);
 
@@ -250,7 +250,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
 
        if (active_cache_changed) {
                if (write_cache(newfd, active_cache, active_nr) ||
-                   close(newfd) || commit_locked_index(&lock_file))
+                   commit_locked_index(&lock_file))
                        die("Unable to write new index file");
        }