avoid double close of descriptors handed to run_command
[gitweb.git] / builtin / replace.c
index 8507835d39664de640ccdd02df75743db19b4ec0..eb1d2ec5e53969b0feee3f1555b45b36a4030fab 100644 (file)
@@ -207,8 +207,6 @@ static void export_object(const unsigned char *sha1, const char *filename)
 
        if (run_command(&cmd))
                die("cat-file reported failure");
-
-       close(fd);
 }
 
 /*