From: Martin Langhoff Date: Mon, 22 May 2006 12:45:47 +0000 (+1200) Subject: cvsimport: minor fixups X-Git-Tag: v1.4.0-rc1~95 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f396f01f11208789875b61e4e0e3239b04f9e38d cvsimport: minor fixups Cleanup @skipped after it's used. Close a fhandle. Removing suspects one at a time. Signed-off-by: Martin Langhoff Signed-off-by: Junio C Hamano --- diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 8c707f2c66..282646af35 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -650,6 +650,8 @@ ($$) "GIT_COMMITTER_DATE=".strftime("+0000 %Y-%m-%d %H:%M:%S",gmtime($date)), "git-commit-tree", $tree,@par); die "Cannot exec git-commit-tree: $!\n"; + + close OUT; } $pw->writer(); $pr->reader(); @@ -661,6 +663,7 @@ ($$) if (@skipped) { $logmsg .= "\n\n\nSKIPPED:\n\t"; $logmsg .= join("\n\t", @skipped) . "\n"; + @skipped = (); } print $pw "$logmsg\n"