compat: Add simplified merge sort implementation from glibc
[gitweb.git] / builtin-mv.c
index a3f9ad174492827e42f2854287fab19915d8ef76..990e21355d189096bdc0c808fb536b7bfb85b0a1 100644 (file)
@@ -264,7 +264,6 @@ int cmd_mv(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))
                                die("Unable to write new index file");
                }