git-p4: Ensure the working directory and the index are clean before "git-p4 rebase"
[gitweb.git] / builtin-read-tree.c
index 43cd56a3b5f969c5f8a44c674b95b53868e9d147..c0ea0342b755c6749391803d19f852182c0c512e 100644 (file)
@@ -283,7 +283,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
        }
 
        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");
        return 0;
 }