GIT 1.5.4-rc4
[gitweb.git] / builtin-apply.c
index d57bb6e070b838230c0cf5bd15ba0e948ca7223f..15432b6782400b556333ee4117c7daaff20412ab 100644 (file)
@@ -2921,7 +2921,7 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
 
        if (update_index) {
                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");
        }