[PATCH] Tidy up - slight simplification of rev-list.c
[gitweb.git] / git-cvsimport-script
index cdf989161435fd9bbc4791ae4a227be199b6dfae..6d5a7fad38b128876903c96ce3badcc01001b185 100755 (executable)
@@ -40,7 +40,7 @@ END
        exit(1);
 }
 
-getopts("hqvo:d:p:C:z:") or usage();
+getopts("hvo:d:p:C:z:") or usage();
 usage if $opt_h;
 
 @ARGV <= 1 or usage();
@@ -317,6 +317,7 @@ sub file {
            $res = $self->_line($fh);
            die "No input: $fn $rev\n" unless defined $res;
        }
+       close ($fh);
 
        return ($name, $res);
 }